Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived General Discussion
How to pass an object from script by controller
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
How to pass an object from script by controller
El Forum
Guest
#1
06-17-2008, 10:43 AM
[eluser]szulcseban[/eluser]
How to pass an object from script by controller to view?
El Forum
Guest
#2
06-17-2008, 11:17 AM
[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?
El Forum
Guest
#3
06-17-2008, 11:29 AM
[eluser]szulcseban[/eluser]
I've got an object in class placed in application/scripts.
And than I want to pass that object to view.
El Forum
Guest
#4
06-17-2008, 12:05 PM
[eluser]sophistry[/eluser]
at the risk of stating the obvious... does this work?
Code:
$data['object_to_use_in_view'] = $object_in_controller;
El Forum
Guest
#5
06-17-2008, 10:15 PM
[eluser]evanwalsh[/eluser]
application/scripts? Wasn't that in the older versions of CI?
El Forum
Guest
#6
06-18-2008, 10:51 AM
[eluser]szulcseban[/eluser]
You're right, evanwalsh. I've read an old tutorial. Of course I should use a model ( MVC pattern)
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB