file_exists and DRY principle |
Hi,
i was reading the documentation here https://www.codeigniter.com/user_guide/t...pages.html to the section "Adding logic to the controller". I think repeating ! file_exists(APPPATH.'views/pages/'.$page.'.php')) in each view does violate the DRY principle ? |
Messages In This Thread |
file_exists and DRY principle - by tomtom - 04-21-2019, 02:19 PM
RE: file_exists and DRY principle - by dave friend - 04-21-2019, 03:40 PM
|