public function action_category() { $category = new Model_Ajax(); $content = View::factory('/admin/category'); $result = $category->read_category(); $result = $result->as_array(); $content->category = $result; $this->template->scripts = array('jquery-1.11.3.min', 'bootstrap.min', 'admin3'); $this->template->content = $content; }