Ejemplo n.º 1
0
 /**
  * Prepare the view.
  *
  * NOTE: must be called after prepareMetaModel().
  *
  * @return void
  */
 protected function prepareView()
 {
     $this->objView = $this->objMetaModel->getView($this->intView);
     if ($this->objView) {
         $this->objTemplate = new Template($this->objView->get('template'));
         $this->objTemplate->view = $this->objView;
     } else {
         // Fallback to default.
         $this->objTemplate = new Template('metamodel_full');
     }
 }