コード例 #1
0
 /**
  * Sets a reference to the model on the view model, allowing the view to access the model for redndering.
  */
 protected function afterPreRun()
 {
     parent::afterPreRun();
     $this->getViewModel()->model = $this->model;
 }