public function action_index() { $this->set_title(__('Pages'), FALSE); Assets::package(array('nestable', 'editable')); $this->template_js_params['PAGE_STATUSES'] = array_map(function ($value, $key) { return array('id' => $key, 'text' => $value); }, Model_Page::statuses(), array_keys(Model_Page::statuses())); $this->template->content = View::factory('page/index', array('page' => ORM::factory('page', 1), 'content_children' => $this->children(1, 0, TRUE))); }