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 Development & Programming
Where to modify the DB result, on MVC?
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
Where to modify the DB result, on MVC?
El Forum
Guest
#1
07-31-2009, 08:58 PM
[eluser]cleansugar[/eluser]
If I want to change the result() object in model.
Where should I change the object? Model or Controller?
El Forum
Guest
#2
07-31-2009, 09:11 PM
[eluser]bretticus[/eluser]
Do you mean extend the core class?
El Forum
Guest
#3
07-31-2009, 09:32 PM
[eluser]cleansugar[/eluser]
No, general MVC pattern.
If DB returns MEN object, which has name and sex.
I want to change MEN2 object, which has name, sex, phone number.
El Forum
Guest
#4
07-31-2009, 10:10 PM
[eluser]bretticus[/eluser]
okay, so I assume your "MEN object" is the result of a query and result()
What do you mean by you want to change it?
El Forum
Guest
#5
07-31-2009, 10:12 PM
[eluser]cleansugar[/eluser]
I want to change MEN to MEN2 object, adding phone number.
Thank you for your polite reply.
--------------------
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