Dynamic Data Objects |
[eluser]bastones[/eluser]
Hi, I have the following piece of code: Code: else { ...and basically inside the view file I want to request the object? Like I would do $activate_now->function for example? Hope I explained enough ![]() Cheers.
[eluser]Aken[/eluser]
I'm pretty positive you can't pass objects through to view files. Instead, you should create an Activate library, and have it's variables returned as an array instead of an object. Then in the view, instead of calling $activate_now->variable, you'd call $activate_now['variable']
[eluser]bastones[/eluser]
sorry that doesn't make sense to me, can you elaborate?
[eluser]Aken[/eluser]
Read the User Guide portion about loading dynamic content into your views: http://ellislab.com/codeigniter/user-gui...views.html
[eluser]frenzal[/eluser]
I think this would work: Code: else { and then your object will be $activate_now |
Welcome Guest, Not a member yet? Register Sign In |