[eluser]TheFuzzy0ne[/eluser]
[quote author="adwin" date="1209325724"]Hi,
I thinks this is not very related but I just need to know how to change from stdclass into model class so that I can have a methods ...
here is the example
$customerlist = $this->db->get($this->_table)->result();
I have customers model like this
class customers extends model{
var id = '';
....
function getCustomerOrders(){
$this->load('orders');
return $this->orders->getordersbycustid($this->id);
}
}
I want all the customer result from db->get()->result(); return as customers obj.
can I do that ?
thx[/quote]
I'm sure it can be done. Can you show us more source code? I'm not sure what your code is doing.