I have a routing question for CodeIgniter.
I have two applications sharing the system folder with the following folder structure
./admin
./admin/index.php
./admin/{stylesheets, scripts, images, etc}
./site
./site/index.php
./site/{stylesheets, scripts, images, etc}
./applications/admin
./applications/admin/{controllers, models, config, etc.}
./applications/site
./applications/site/{controllers, models, config, etc.}
./system
All is working ok, except that I can only access my site as domain.com/site/controller_name/method_name. How can I get rid of the site part?
Also, is there an easy way to share helpers and libraries between the applications? Besides putting them in system/helpers.
Thanks!
www.yoursite.comandyoursite.comlead tositefolder and make a sub-domainadmin.yoursite.comthat will point to youradminfolder. Or another way would be to write an.htaccessif you're on Apache and put it to your web root folder. Regarding shared helpers and libraries, you can usethird party/packagesellislab.com/codeigniter/user-guide/libraries/loader.html or you can always simplyinclude(). - Sergey Telshevsky