route()->getAction(); $actions = str_replace($action['namespace'].'\\','',!empty($action['controller'])?$action['controller']:''); $actions = str_replace('\\','/',$actions); if (!empty($actions)){ $action = explode('@',$actions); $this->actions['controller'] = !empty($action[0])?$action[0]:'CommonController.php'; $this->actions['action'] = !empty($action[1])?$action[1]:'common'; }else{ $this->actions['controller'] = 'CommonController.php'; $this->actions['action'] = 'common'; } return $this->actions; } public function get() { return $this->actions; } }