コード例 #1
0
 public function init($name, $action, $settings = array(), $extra = array())
 {
     $this->name = $name;
     $this->controllerPathname = Z_String::camel2under($name);
     //
     // Handle settings set by router
     //
     if (!empty($settings['directory'])) {
         $this->directory = $settings['directory'] . '/';
     }
     foreach ($extra as $key => $val) {
         $this->routeVariables[$key] = $val;
     }
     $this->action = $action;
 }