function defaultAction() { $this->defaultData(); $pid = $this->getParameter('id'); $this->view->p = $this->postsRepo->find($pid); $this->view->comments = $this->postsRepo->getComments($pid); $this->view->render('post/post'); }