Example #1
0
 /**
  * Определение контроллера и экшена
  */
 private static function prepareController()
 {
     self::prepareRequest();
     if (!($furl = \Controller\Router::findRule(self::$_path))) {
         $furl = explode('/', preg_replace('#\\/{1,}#', '/', self::$_path));
     }
     self::$_controller = (isset($furl[1]) and $furl[1]) ? ucfirst(mb_strtolower($furl[1])) : 'Index';
     self::$_action = (isset($furl[2]) and $furl[2]) ? ucfirst(mb_strtolower($furl[2])) : 'Index';
     unset($furl[0], $furl[1], $furl[2]);
     self::$_furl = array_values($furl);
 }