Welcome Guest, Not a member yet? Register   Sign In
How to structure my site
#2

[eluser]Michael Wales[/eluser]
You would setup the /doctors/smith/edit URI routing the same way you did the other.
Code:
$route['doctors/:any/edit'] = 'doctors/edit';
The miracle (curse?) or URI routing is you have to do it with everything that begins with your defined URI. For example, if you had 'doctors/list' - Code Igniter wouldn't know what to do with it now that you have started re-writing that URI. You will have to define this route in your URI routing.

Remember, routing is done from the top to the bottom (and I have had experiences where the top-most route doesn't work - anyone else?).

As for your header/footer - that is one way to go about it.


Messages In This Thread
How to structure my site - by El Forum - 08-17-2007, 04:13 PM
How to structure my site - by El Forum - 08-17-2007, 05:04 PM
How to structure my site - by El Forum - 08-18-2007, 04:16 AM
How to structure my site - by El Forum - 08-18-2007, 01:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB