Separate the admin php files

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

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

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

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

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

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.