file_exists and DRY principle |
The function view($page = 'home') is a single method used to display any number of pages. Violating DRY would be to have a separate method for each possible "page" that repeats the same lines of code in each one.
|
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
|