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
autoloading model
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
autoloading model
El Forum
Unregistered
#1
06-14-2008, 06:45 AM
[eluser]Unknown[/eluser]
Fatal error: Cannot redeclare class News in C:\wamp\www\mmc2\files\application\models\news.php on line 22
happens after i autoloaded a model or i load a model in more than one controller.
am i doing something wrong?
El Forum
Unregistered
#2
06-14-2008, 08:43 AM
[eluser]Popcorn[/eluser]
It seems like you already have a controller with a class "News", try naming the model "news_model"
El Forum
Unregistered
#3
06-14-2008, 05:57 PM
[eluser]dbashyal[/eluser]
you must be right. he must have same name class "news" in controller and model.
--------------------
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