วิธีโดย
Set View และ Model ตามที่ต้องการใน controller เช่น
ส่วนของ controller
โค้ด: เลือกทั้งหมด
$model = $this->getModel ( 'person' );
$view = $this->getView ( 'person ' );
$view->setModel( $model, true ); // true is for the default model;
$company = $this->getModel ( 'company' );
$company->_name = 'model_company';
$view->setModel( $company );
โค้ด: เลือกทั้งหมด
$person = $this->get('person' );
$company = $this->get('company, 'model_company);
โค้ด: เลือกทั้งหมด
$person = $this->get('person' );
$company = $this->get('company, 'model_company, $person->company_id );