Welcome Guest, Not a member yet? Register   Sign In
I have extended Controller, how to use a function in view files?
#2

[eluser]sophistry[/eluser]
the fast reply is that controllers are for handling http requests that come from the browser/user; they are not designed for handling calls from a view (or anywhere else for that matter). that is why they are called controllers. if you want to reuse code in the way you describe, make a plugin or helper or library.

if you want to call controllers from other controllers (or embed controller calls in a view) you'll need to check out wiredesignz's "Modular Extensions" (I feel an eerie sense of deja vu) ;-) check the wiki - it's pretty easy to set up and you'll be calling controllers from views in just a few hours.

cheers.


Messages In This Thread
I have extended Controller, how to use a function in view files? - by El Forum - 07-18-2008, 09:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB