Welcome Guest, Not a member yet? Register   Sign In
CMS Application structure
#7

[eluser]Phil Sturgeon[/eluser]
Is a config file really the best place to put that? That is essentially what mine is doing, but in the Router it feels at home.

IF you must do it in the config file, try a neater 1-liner that does the same thing.

Code:
foreach(glob(APPPATH.'modules/*', GLOB_ONLYDIR) as $module) @include_once($module.'/config/routes.php');


Messages In This Thread
CMS Application structure - by El Forum - 12-16-2008, 01:54 PM
CMS Application structure - by El Forum - 12-17-2008, 06:02 AM
CMS Application structure - by El Forum - 12-17-2008, 06:03 AM
CMS Application structure - by El Forum - 12-17-2008, 06:06 AM
CMS Application structure - by El Forum - 12-17-2008, 09:19 AM
CMS Application structure - by El Forum - 12-17-2008, 09:35 AM
CMS Application structure - by El Forum - 12-17-2008, 09:43 AM
CMS Application structure - by El Forum - 12-17-2008, 09:45 AM
CMS Application structure - by El Forum - 01-02-2009, 10:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB