[eluser]Marcelo Kanzaki[/eluser]
Sorry, i don't know if this is the right place to ask this. But i really could use some help.
I'm using CI with PHP5 and when i went testing on the server, some bugs happened.
I have this function in on of my models and i didn't know that php4 doesn't support adding properties to objects the way i did. Can someone tell me how to get around this problem?
Code:
function find_ ($page_id)
{
$this->db->where('page_parent_id', $page_id);
$this->db->order_by('page_created', 'DESC');
$query = $this->db->get('fala_pages');
foreach ($query->result() as $row)
{
$row->subpages = count( $this->find_($row->page_id) );
}
return $query->result();
}