Welcome Guest, Not a member yet? Register   Sign In
Routes not rewriting links properly
#5

[eluser]steeped[/eluser]
[quote author="jvicab" date="1313176265"]what are your implementation? having a controller named item or a function named item inside default controller?
Any of these two ways should work:

in a default controller, having a function named items which expects a parameter that will be what you pass after, toshiba123 in this case
or having a controller named items and inside it having a index function which is called by befault of no other function name is found and as before, expecting a parameter, that is toshiba123[/quote]

I have electronics which is the controller, and notebook with is the method. The method loads the model which is based on the third segment (which in this case is toshiba123). If the third segment is HP123, it will load the HP123 information.


Messages In This Thread
Routes not rewriting links properly - by El Forum - 08-12-2011, 07:15 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 07:55 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:05 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:11 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:17 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:30 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:33 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:50 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 09:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB