Welcome Guest, Not a member yet? Register   Sign In
ActiveRecord for CodeIgniter: Rails-style model interactions
#77

[eluser]KJSDFHASD78FASDF78SA[/eluser]
@beemr

You can try to retrieve the list of joined table's columns via $this->_select property. However, if you need full info, you've got to "SHOW FULL COLUMNS FROM " for each joined table ($this->_join property).

@easymind

The simplest way to do that is to ask the model to return a plain object instead of an Active Record instance:
Code:
$this->load->model('voorstelling');
$voorstelling = $this->voorstelling->find($id, RETURN_NEW, PLAIN_OBJECT);

foreach($voorstelling as $field=>$value)
{
    echo "$field has value $value<br/>";
}


Messages In This Thread
ActiveRecord for CodeIgniter: Rails-style model interactions - by El Forum - 02-07-2008, 01:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB