Example #1
0
 /**
  * Initializes the model with basic information.
  *
  * This should not be controller or action specific!
  * If something goes wrong during initModel(), renderFatalError() will be called
  * on the renderer.
  * Fatal errors are not pretty.
  *
  */
 public function initModel()
 {
     $this->model->assign('controller', $this, Model::UNPUBLISHABLE);
     $this->model->assign('router', $this->container->router, Model::UNPUBLISHABLE);
     $this->model->assign('config', $this->container->config, Model::UNPUBLISHABLE);
 }