예제 #1
0
파일: controller.php 프로젝트: Blu2z/implsk
 /**
  *
  */
 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;
 }
예제 #2
0
파일: listener.php 프로젝트: Blu2z/implsk
 public function create_site($site_id)
 {
     nc_routing_route_defaults::create($site_id);
 }