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
Using CodeIgniter
General Help
Call model from MY_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
Call model from MY_Controller
muuucho
Member
Posts:
116
Threads:
25
Joined:
Feb 2016
Reputation:
4
#1
06-10-2017, 05:03 AM
Is it OK to call a model from MY_Controller?
This means that all controllers can call this model. Is this OK or am I breaking a "heavy rule" here?
Reply
skunkbad
Senior Citizen
Posts:
1,300
Threads:
63
Joined:
Oct 2014
Reputation:
86
#2
06-10-2017, 08:22 AM
There are no "heavy rules". CodeIgniter is built to give you shortcuts on your PHP journey, not to enslave you and make you do things a certain way.
Expert Website Development - Temecula, CA
Community Auth For CodeIgniter 3
Reply
muuucho
Member
Posts:
116
Threads:
25
Joined:
Feb 2016
Reputation:
4
#3
06-12-2017, 08:51 AM
Cheers to that!
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