public function actionAddComent()
 {
     $this->view = new View($this->params, PATH_VIEW_COMENT, 'add-coment_tpl.php', false);
     $this->html->add('content', $this->view->render());
     $layout = new Layout($this->html->getArray());
     $layout->get();
 }
 public function actionEditProfile()
 {
     $this->view = new View($this->session->getAllParams(), PATH_VIEW_AUTHOR, 'edit-profile_tpl.php', false);
     $this->html->add('content', $this->view->render());
     $layout = new Layout($this->html->getArray());
     $layout->get();
 }
Exemple #3
0
 /**
  * Get Data
  *
  * @param $key
  *
  * @return mixed|null
  *
  * @since 1.0.0
  */
 public function get($key, $default_value = null)
 {
     return $this->layout->get($key, $default_value);
 }
 public function actionEditPost()
 {
     $post = new Post();
     $records = $post->GetOnePost($this->params['id']);
     $this->view = new View($records, PATH_VIEW_POSTS, 'edit-post_tpl.php', false);
     $this->html->add('content', $this->view->render());
     $layout = new Layout($this->html->getArray());
     $layout->get();
 }