redirect('Admin/Login/login'); } }//end _initialize() /** * 获取当前模块. */ protected function getModular() { $request = Request::instance(); $controller = $request->controller(); $module = $request->module(); $action = $request->action(); $path = $request->path(); $data = [ 'controller' => $controller, 'module' => $module, 'action' => $action, 'path' => $path, ]; return $data; }//end getModular() }