Err: Controller 'mainController' is not exists!

493.      }
494.  }
495.  function _err_router($msg){
496.      Global $__module$__controller$__action;
497.      if(!method_exists('BaseController''err404')){
498.          err($msg);
499.      }else{
500.          BaseController::err404($__module$__controller$__action$msg);
501.      }
502.  }
503.  function _err_handle($errno$errstr$errfile$errline){
75.  if(!empty($__module)){
76.      if(!is_available_classname($__module))_err_router("Err: Module '$__module' is not correct!");
77.      if(!is_dir(APP_DIR.DS.'protected'.DS.'controller'.DS.$__module))_err_router("Err: Module '$__module' is not exists!");
78.  }
79.  if(!is_available_classname($__controller))_err_router("Err: Controller '$controller_name' is not correct!");
80.  if(!class_exists($controller_nametrue))_err_router("Err: Controller '$controller_name' is not exists!");
81.  if(!method_exists($controller_name$action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
82. 
83.  $controller_obj = new $controller_name();
84.  $controller_obj->$action_name();
85. 
3.  header('Access-Control-Allow-Origin: *');
4.  header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
5.  header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
6.  define('APP_DIR'realpath('./'));
7.  define("APP_PATH",dirname(__FILE__));
8.  require(APP_DIR.'/protected/lib/speed.php');