public function actionViewPost()
 {
     $records_posts_coments = [];
     $records_posts = [];
     $records_coments = [];
     $post = new Post();
     $records_posts = $post->GetOnePost($this->params['id']);
     $coment = new Coment();
     $records_coments = $coment->GetAllComentsByPost($this->params['id']);
     $records_coments = $coment->SortParentComentsByPost($this->params['id'], $records_coments);
     $records_posts_coments['records_posts'] = $records_posts;
     $records_posts_coments['records_coments'] = $records_coments;
     $this->view = new View($records_posts_coments, PATH_VIEW_POSTS, 'post_tpl.php', false);
     $this->html->add('content', $this->view->render());
     $layout = new Layout($this->html->getArray());
     $layout->get();
 }