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
The Controlller and Model same filename -> wrong ?
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
The Controlller and Model same filename -> wrong ?
El Forum
Unregistered
#2
04-08-2009, 04:04 AM
[eluser]Mike Ryan[/eluser]
You can't have two classes with identical names loaded simultaneously. Try calling your controller User and your model Usermodel. When loading the model, use:
Code:
$this->load->model('Usermodel','user');
$this->user->some_function_in_model();
Messages In This Thread
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 03:48 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 04:04 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 04:21 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 06:30 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 06:39 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 06:54 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 07:04 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 07:10 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 07:25 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 08:24 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 04-08-2009, 09:13 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-10-2009, 01:42 PM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-10-2009, 01:58 PM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-10-2009, 02:15 PM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-10-2009, 05:45 PM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 01:38 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 07:51 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 08:10 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 08:33 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 08:45 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 08:55 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 09:04 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 09:14 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 09:26 AM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 12:28 PM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 01:19 PM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-11-2009, 04:47 PM
The Controlller and Model same filename -> wrong ?
- by El Forum - 05-12-2009, 10:11 AM
--------------------
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