/** * */ protected function action_index() { $this->ui_config->locationHash .= ".list({$this->site_id})"; $this->ui_config->add_create_button("route.add({$this->site_id})"); $routes = nc_routing::get_routes($this->site_id, true); if (!count($routes)) { nc_routing_route_defaults::create($this->site_id); $routes = nc_routing::get_routes($this->site_id, true, true); } $view = $this->view('route_list')->with('routes', $routes); return $view; }
public function create_site($site_id) { nc_routing_route_defaults::create($site_id); }