Welcome Guest, Not a member yet? Register   Sign In
undefined property
#1

[eluser]f0n3man[/eluser]
i am having a problem getting an error message from the controller that the property Site::$site_model is undefined. the php error in the system log states: 'Call to a member function get_records() on a non-object in /path/etc...'. the get_records function exists in site_model.php. i have the database library autoloaded, and even have the model loaded in the controller, and still get the same error message. i have done this in two different installations with 2 different versions. i can access the database and pull records. from the controller. i am brand new to codeigniter, but so far am not impressed as i can't get it to work properly. any other ideas?


Messages In This Thread
undefined property - by El Forum - 10-07-2010, 10:13 AM
undefined property - by El Forum - 10-07-2010, 10:25 AM
undefined property - by El Forum - 10-07-2010, 12:51 PM
undefined property - by El Forum - 10-07-2010, 12:53 PM
undefined property - by El Forum - 10-07-2010, 01:09 PM
undefined property - by El Forum - 10-07-2010, 01:30 PM
undefined property - by El Forum - 10-07-2010, 02:00 PM
undefined property - by El Forum - 10-07-2010, 04:56 PM
undefined property - by El Forum - 10-07-2010, 05:12 PM
undefined property - by El Forum - 10-07-2010, 05:17 PM
undefined property - by El Forum - 10-08-2010, 08:21 AM
undefined property - by El Forum - 10-08-2010, 12:26 PM
undefined property - by El Forum - 10-08-2010, 01:32 PM
undefined property - by El Forum - 10-08-2010, 01:40 PM
undefined property - by El Forum - 10-09-2010, 12:20 AM
undefined property - by El Forum - 10-09-2010, 05:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB