Welcome Guest, Not a member yet? Register   Sign In
How to pass an object from script by controller
#1

[eluser]szulcseban[/eluser]
How to pass an object from script by controller to view?
#2

[eluser]Pascal Kriete[/eluser]
I'm sorry, but I don't understand the question.

Where is this object coming from? Can you give an example of what you're trying to do?
#3

[eluser]szulcseban[/eluser]
I've got an object in class placed in application/scripts.
And than I want to pass that object to view.
#4

[eluser]sophistry[/eluser]
at the risk of stating the obvious... does this work?
Code:
$data['object_to_use_in_view'] = $object_in_controller;
#5

[eluser]evanwalsh[/eluser]
application/scripts? Wasn't that in the older versions of CI?
#6

[eluser]szulcseban[/eluser]
You're right, evanwalsh. I've read an old tutorial. Of course I should use a model ( MVC pattern)Wink




Theme © iAndrew 2016 - Forum software by © MyBB