• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to locate the model you have specified error

#8
[eluser]Aziz Chouhan[/eluser]
hi shannon

all i read about your post i found some mistaken concepts.
like
1. you make your model looking correct,but it can work perfectly when it calls from a controller.
2. make a controller which is called when a page is submitted to the server
3. in that controller
a. first load your model
$this->load->model('Membership_model');
b. then call your model function
$this->Membership_model-> validate()

that you have done in your code

4. all before your code ,you are missing this in you model code

function __construct()
{
// Call the Model constructor
parent::__construct();
}

this is very important,and always use this,ok

now i think your code will run successfully.

for full help of code reply me


enjoy


Messages In This Thread
Unable to locate the model you have specified error - by El Forum - 07-23-2011, 11:11 PM
Unable to locate the model you have specified error - by El Forum - 07-23-2011, 11:47 PM
Unable to locate the model you have specified error - by El Forum - 07-23-2011, 11:49 PM
Unable to locate the model you have specified error - by El Forum - 07-24-2011, 12:02 AM
Unable to locate the model you have specified error - by El Forum - 07-24-2011, 12:05 AM
Unable to locate the model you have specified error - by El Forum - 07-24-2011, 12:09 AM
Unable to locate the model you have specified error - by El Forum - 07-24-2011, 12:33 AM
Unable to locate the model you have specified error - by El Forum - 07-24-2011, 01:17 AM
Unable to locate the model you have specified error - by El Forum - 07-24-2011, 02:40 AM
Unable to locate the model you have specified error - by El Forum - 07-24-2011, 03:04 AM
Unable to locate the model you have specified error - by El Forum - 07-24-2011, 03:15 AM
Unable to locate the model you have specified error - by El Forum - 07-24-2011, 03:58 AM
Unable to locate the model you have specified error - by El Forum - 07-24-2011, 10:30 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.