Welcome Guest, Not a member yet? Register   Sign In
Accesing Controller Data from module
#1

[eluser]Uto[/eluser]
Is it possible to access to properties of the calling controller from a module other than passing it as parameters?

I mean something like:

Code:
$this->parent->propertyname

I have a module that was able to load all data needed from constructor itself, no needing any parameters, and it's widely used in the application. But now, under some circunstances, that happen a 0.5% of the times it's used, it may need to get a property from the "parent" controller, and changing it all over the code is quite risky.


Messages In This Thread
Accesing Controller Data from module - by El Forum - 04-24-2009, 03:35 AM
Accesing Controller Data from module - by El Forum - 04-24-2009, 03:52 AM
Accesing Controller Data from module - by El Forum - 04-24-2009, 04:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB