View Full Version : Variables in Views
30 Dec 2011, 8:16 AM
I'm sure this is easy but I can't seem to pass any variables into my views from my controller. Does anyone know the best practice for this? I'm using touch pr2 and working with the MVC pattern.
30 Dec 2011, 8:35 AM
You can set a property on the view before an action and that action can check that property. Or you can have a method on the view that accepts a parameter.
30 Dec 2011, 8:41 AM
Thanks for the quick response, would happen to know of an example you can point me to.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.