Welcome Guest, Not a member yet? Register   Sign In
Calling a controller method from a view
#6

[eluser]Cro_Crx[/eluser]
[quote author="Simon Phoenix" date="1247512352"]I have actually seen this done without using any functions and just specifing the relative path so if anyone knows how to do that i'd be interested to know.[/quote]

You could do this, the only problem is that it's not 100% portable. Let's say for example if your using the same view for the header and you have two pages one's blogs/jeff/posts/3 and the other is blogs/jeff. The URI relative to one won't be the same to the other. That's why you always want to use the URL helper functions when possible.


Messages In This Thread
Calling a controller method from a view - by El Forum - 07-13-2009, 06:51 AM
Calling a controller method from a view - by El Forum - 07-13-2009, 07:16 AM
Calling a controller method from a view - by El Forum - 07-13-2009, 07:41 AM
Calling a controller method from a view - by El Forum - 07-13-2009, 07:52 AM
Calling a controller method from a view - by El Forum - 07-13-2009, 08:12 AM
Calling a controller method from a view - by El Forum - 07-13-2009, 08:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB