Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Cannot redeclare class User
#3

[eluser]Samus[/eluser]
[quote author="SamoualSys" date="1333706535"]i have thought it may be because i use the same name of the controler and the model name so i change the name of the model to user_model but now it give me this error msg in all my application
Code:
Unable to locate the model you have specified: user
i have search all my files and change it to user_model but still give me the same error [/quote]
Yes that was the initial problem.

But you don't seem to have changed the model file name, it needs to correspond with the class name too.

so if your model file name is now 'user_model' your model class name should be 'User_model'


Messages In This Thread
Fatal error: Cannot redeclare class User - by El Forum - 04-06-2012, 02:43 AM
Fatal error: Cannot redeclare class User - by El Forum - 04-06-2012, 03:02 AM
Fatal error: Cannot redeclare class User - by El Forum - 04-06-2012, 04:30 AM
Fatal error: Cannot redeclare class User - by El Forum - 04-06-2012, 06:40 AM
Fatal error: Cannot redeclare class User - by El Forum - 04-07-2012, 03:32 AM
Fatal error: Cannot redeclare class User - by El Forum - 04-07-2012, 08:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB