CodeIgniter Forums

Full Version: Separate the admin php files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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"?

El Forum

[eluser]wiredesignz[/eluser]
Use sub-directories or Matchbox modules

El Forum

[eluser]Alexander Radsby[/eluser]
Sub-directories in the view folder then?

El Forum

[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.

El Forum

[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!

El Forum

[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.

El Forum

[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...