Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 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();
 }