Пример #1
0
 public function action_view($id = null)
 {
     $article = Model_Article::find_by_url_title($id);
     if ($article) {
         $view = Presenter::forge('article/view');
         $view->set('article', $article);
         $this->template->set('content', $view);
     } else {
         return Response::forge(Presenter::forge('welcome/404'), 404);
     }
 }