Welcome Guest, Not a member yet? Register   Sign In
How to add an external "routes.php" config file using Modular Separation
#1

[eluser]Design Software[/eluser]
Hi all,
i need some help, how can I add an external "routes.php" config file using Modular Separation. I've try by myself but I can't make CodeIgniter load "routes.php" located in my module's config folder.

For example i need this structure
Code:
...
   + modules
         + user
               + config
                       config.php
                       routes.php
               + controllers
               + language
               + views

         + news
               + config
                       config.php
                       routes.php
               + controllers
               + language
               + views

Thanks
#2

[eluser]jdfwarrior[/eluser]
Since routes.php is obviously just a php file, could you not just use an "if" statement to require an additional file based on a condition?




Theme © iAndrew 2016 - Forum software by © MyBB