...undefined property |
[eluser]drseuss[/eluser]
I reinstalled codeigniter and setup everything correctly Checking everything 2 or 3 times and it's still not working.
[eluser]InsiteFX[/eluser]
Just for a test change your function login() below to function index() and see if it works! Code: class Account extends CI_Controller { InsiteFX
[eluser]drseuss[/eluser]
I've made the change and I still have the error. A PHP Error was encountered Severity: Notice Message: Undefined property: Account::$account_m Filename: controllers/account.php Line Number: 21 I guess I am just going to start over on it -.-
[eluser]InsiteFX[/eluser]
If you check it's telling you that your Model is not being loaded! Thats why I asked you to try using index. Did you check your log files to see what is going on? InsiteFX
[eluser]drseuss[/eluser]
My apache log pretty much tells me the same as CI [Wed Mar 30 09:41:14 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function login() on a non-object in C:\\wamp\\www\\application\\controllers\\account.php on line 21, referer: http://localhost/ [Wed Mar 30 09:41:14 2011] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/ [Wed Mar 30 09:41:14 2011] [error] [client 127.0.0.1] PHP 1. {main}() C:\\wamp\\www\\index.php:0, referer: http://localhost/ [Wed Mar 30 09:41:14 2011] [error] [client 127.0.0.1] PHP 2. require_once() C:\\wamp\\www\\index.php:198, referer: http://localhost/ [Wed Mar 30 09:41:14 2011] [error] [client 127.0.0.1] PHP 3. call_user_func_array() C:\\wamp\\www\\system\\core\\CodeIgniter.php:325, referer: http://localhost/ [Wed Mar 30 09:41:14 2011] [error] [client 127.0.0.1] PHP 4. Account->index() C:\\wamp\\www\\system\\core\\CodeIgniter.php:0, referer: http://localhost/
[eluser]InsiteFX[/eluser]
I just checked it on my system remarking out your code for the database and it works! Are you running MySQL? Did you create the database and the table accounts ? InsiteFX
[eluser]drseuss[/eluser]
Yes, I've set everything up. Database and CI settings. I'm running MySQL that comes with WAMP.
[eluser]InsiteFX[/eluser]
This line right here is telling you that your model is not being loaded! Code: [Wed Mar 30 09:41:14 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function login() on a non-object in C:\\wamp\\www\\application\\controllers\\account.php on line 21, referer: http://localhost/ Yet when I remark out your database and session stuff it loads on my XAMPP system! You need to track down why your model is not loading... Something to do with your installation! InsiteFX
|
Welcome Guest, Not a member yet? Register Sign In |