Separate the admin php files - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Separate the admin php files (/showthread.php?tid=7206) |
Separate the admin php files - El Forum - 03-29-2008 [eluser]Alexander Radsby[/eluser] I understand that it's pretty easy to make CodeIgniter show regular pages such as: http://www.yoursite.com/about-us/ But if I write a cms system to the site, how do I get the url to be: http://www.yoursite.com/admin/something? And is there any way I can separate the admin "controller/views/models" from the regular site "controller/views/models"? Separate the admin php files - El Forum - 03-29-2008 [eluser]wiredesignz[/eluser] Use sub-directories or Matchbox modules Separate the admin php files - El Forum - 03-29-2008 [eluser]Alexander Radsby[/eluser] Sub-directories in the view folder then? Separate the admin php files - El Forum - 03-29-2008 [eluser]Pascal Kriete[/eluser] What I believe he meant was a subdirectory in each of them. So you have controllers/admin models/admin and views/admin. But the better choice is modular seperation with Matchbox. Separate the admin php files - El Forum - 03-29-2008 [eluser]Alexander Radsby[/eluser] Thanks a lot for the fast reply! I didn't even know that it was possible to do it like this: controllers/admin/ I'll check out Matchbox. Thanks! Separate the admin php files - El Forum - 03-30-2008 [eluser]BeingDefined[/eluser] You can have more than one application under a single system. Thats how codeextinguisher does it. Not only is it clean, it also gives you the ability to write your own lib. Separate the admin php files - El Forum - 03-30-2008 [eluser]setiawans[/eluser] Use Matchbox, I have been building the newest project with it. Honestly i feel the different power of CI instead default configuration ,and i think the developers get things easier... |