quite a couple of ways to do this. generally you have to decide if you place something in your model or in a view/view-helper.
class Author...
function getName()
{
return $this->first_name.' '.$this->last_name;
}
something like
class Author...
var $combined_attributes = array(
array('name', "%s %s", 'first_name', 'last_name')
);
should be 'relativ ähnlich'.
I usually prefer the first one.
=>
$A = new Author(array('first_name'=>'Liz','last_name'=>'Taylor'));
$A->name;
$A->get('name');
// = 'Liz Taylor'
1 to 5 of 5