[eluser]OliverHR[/eluser]
This is beacuse model is not loaded
[quote author="f0n3man" date="1286486020"]
I am having a problem getting an error message from the controller that the property Site::$site_model is undefined.
[/quote]
If you dont load model object instance is not created.
[quote author="f0n3man" date="1286486020"]
the php error in the system log states: 'Call to a member function get_records() on a non-object in /path/etc...'.
[/quote]
I can't see where are you loading your model
[quote author="f0n3man" date="1286486020"]
and even have the model loaded in the controller
[/quote]
put this on your constructor:
Code:
$this->load->model('site_model');