Welcome Guest, Not a member yet? Register   Sign In
Separate the admin php files

[eluser]Alexander Radsby[/eluser]
I understand that it's pretty easy to make CodeIgniter show regular pages such as:


But if I write a cms system to the site, how do I get the url to be:


And is there any way I can separate the admin "controller/views/models" from the regular site "controller/views/models"?

Use sub-directories or Matchbox modules

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

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

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


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.

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

Theme © iAndrew 2016 - Forum software by © MyBB