Trailing Slash (Front & Back) Sharing libs and models |
[eluser]Ignacio[/eluser]
Code: system/application/controllers I have a problem with the trailing slash!!!!! I'm using all the CI on subfolders, but I don't know if that a problem here. Check my example. site.com/clients/client/ -> frontend site.com/clients/clients/admin/ > backend site.com/clients/client -> without "/" the system add it automatically, so, it works fine site.com/clients/client/admin -> without "/" isn't work I'm using ElliotHaughin's htaccess with just a line change: Code: RewriteBase /clients/client/ Maybe you don't like my structure, but it work fine for me on small apps. Any ideas?
[eluser]sikkle[/eluser]
Humm copy here the .htaccess file, and also your routes. Will start by that.
[eluser]Ignacio[/eluser]
Routes Code: $route['default_controller'] = "main"; //home frontend .htaccess Code: <IfModule mod_rewrite.c>
[eluser]Ignacio[/eluser]
Ok, talking with sikkle and wiredesignz[h], my idea was a mess, so I did it with http://ellislab.com/codeigniter/user-gui..._apps.html for two separate apps. Structure Code: .htaccess Important, check this file: admin/index.php #26 Code: $system_folder = "../system"; I don't know if doing that is secure or not, but it works great. Thanks folks. |
Welcome Guest, Not a member yet? Register Sign In |