Welcome Guest, Not a member yet? Register   Sign In
Passing controller object into view (Is this bad?)
#4

[eluser]Colin Williams[/eluser]
You aren't working under any laws, here, so I don't think on the surface anybody can really say it's right or it's wrong. In classic MVC, the View is constantly in contact with the Controller and sometimes the Model.

I, personally, would just pass the value of the form width along with the $data array. You should have a standard way of doing it. Either the Controller always passes data to the View or the View always actively requests the data it needs from the Controller.


Messages In This Thread
Passing controller object into view (Is this bad?) - by El Forum - 10-17-2008, 10:57 PM
Passing controller object into view (Is this bad?) - by El Forum - 10-18-2008, 01:27 AM
Passing controller object into view (Is this bad?) - by El Forum - 10-18-2008, 06:22 AM
Passing controller object into view (Is this bad?) - by El Forum - 10-18-2008, 09:38 AM
Passing controller object into view (Is this bad?) - by El Forum - 10-18-2008, 09:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB