Welcome Guest, Not a member yet? Register   Sign In
Using base_url() on my new host.
#11

[eluser]pickupman[/eluser]
I use Modular Separation in my projects. What I do when create a project is have a module name like test. Then I have a controller test.php and admin_test.php. I use routes like:
Code:
$route['admin/([a-zA-Z_-]+)/(:any)'] = '$1/admin_$1/$2';
$route['admin/([a-zA-Z_-]+)'] = '$1/admin_$1/index';

This creates links like
http://site.com/admin/test loads test/admin_test.php controller

Now you have one install, better file organization, one application. Modular Separation works just like regular CI, but now you can keep code together. Take your member list. You will have frontend controller/views and same for admin. That means member can be a module. The nice part of modules, is that it makes it easy when you do another project that needs the same code. You just copy the module folder into a new install, and it's all setup.




Theme © iAndrew 2016 - Forum software by © MyBB