[eluser]Arieskingdom[/eluser]
Hi guys, know this might be a stupid question but hopefully someone can point me in the right direction.
I downloaded CI, and installed it fine. I routed the frontend pages of my website through template.php, and all was working fine.
The problem comes when I want to have an admin area to add, edit and delete news articles.
I made an admin directory in views, and made an admin.php in controllers, and managed to make an admin system with a login page, dashboard and news page, which listed the news. My problem arose when I tried to make a news edit page. My news was all controlled through admin.php with a function called news, how was I to do another level in?
My question to you is:
What is the best way to do an admin system, would it be by using mysite.com/admin.php/news/edit/5?
Hopefully I've explained myself well, if not let me know.
Thanks
Matthew
Edit ----------
Shoud've searched first really....
Would it be fair to say I could just create a directory in my controllers called admin, and have functions for each page inside that?