public function action_interesting() { $article = new Model_Article(); $text = $article->get_text('interesting'); $text = $text[0]['text']; $content = View::factory('/pages/interesting'); $content->text = $text; $this->template->content = $content; }
public function action_about() { $article = new Model_Article(); $text = $article->get_text('about'); $text = $text[0]['text']; $content = View::factory('/pages/about'); $content->text = $text; // $this->template->text = $text; $this->template->content = $content; }