4th level URL / Folder |
[eluser]Unknown[/eluser]
Hi i'm trying to make reasonably easy to understand URLs but i got stock not being able to cerete URi of next level. I want to go something like this: http://www.example.com/admin/chairs/edit/10 where i already have pages for Admin and Chairs but from Chairs page i want to click edit button and go to next folder (for organizational purposes) and load ID =10 for editing How can i configure controller? In my controller i have admin.php and in it i was trying to load admin->chairs-> edit But that did not help ![]() I googled around and found this thread http://glennpratama.wordpress.com/2009/1...deigniter/ but that did not help either ![]() Hopefully some one can help me out, tnx!
[eluser]Massaki[/eluser]
In admin.php (controller): function chairs ($option=0, $id) { if ($option == 'edit') { // Get data, load views, etc.. } }
[eluser]Unknown[/eluser]
yay its so easy ![]() ![]() tnx a lot! |
Welcome Guest, Not a member yet? Register Sign In |