public function process(IRequest $request)
 {
     if (!$request->hasGetParameter('post_id')) {
         $this->getRenderer()->render('404', new NullResponse());
         return;
     }
     $this->getRenderer()->render('post', new Response($this->getDaoFactory()->getPostDao()->getById($request->getGetParameter('post_id')), $this->getDaoFactory()->getPostCommentDao()->getListByPostId($request->getGetParameter('post_id'))));
 }
 public function resolve(IRequest $request)
 {
     if ($request->hasGetParameter('action')) {
         return $this->createActionByName($request->getGetParameter('action'));
     }
     return $this->createDefaultAction();
 }