zoukankan      html  css  js  c++  java
  • Yii错误404页面

    		'errorHandler'=>array(
    			// use 'site/error' action to display errors
    			'errorAction'=>YII_DEBUG ? null : 'site/error',
    		),
    

      上面的意思是,如果把入口脚本的 debug注释掉,就是直接跳到错误页面,不会显示 下面的页面

    CHttpException
    
    Unable to resolve the request "sit/login".
    
    D:myampApachehtdocsstudy	x_yiiframeworkwebCWebApplication.php(286)
    
    274     public function runController($route)
    275     {
    276         if(($ca=$this->createController($route))!==null)
    277         {
    278             list($controller,$actionID)=$ca;
    279             $oldController=$this->_controller;
    280             $this->_controller=$controller;
    281             $controller->init();
    282             $controller->run($actionID);
    283             $this->_controller=$oldController;
    284         }
    285         else
    286             throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
    287                 array('{route}'=>$route===''?$this->defaultController:$route)));
    288     }
    289 
    290     /**
    291      * Creates a controller instance based on a route.
    292      * The route should contain the controller ID and the action ID.
    293      * It may also contain additional GET variables. All these must be concatenated together with slashes.
    294      *
    295      * This method will attempt to create a controller in the following order:
    296      * <ol>
    297      * <li>If the first segment is found in {@link controllerMap}, the corresponding
    298      * controller configuration will be used to create the controller;</li>
    Stack Trace
    

      

  • 相关阅读:
    sniffer嗅探
    记一次IE代理异常故障
    B860A机顶盒加强
    适合Lakka的安卓盒子配置
    MVG2000 破解
    网络图标显示地球的解决办法
    数码视讯Q7 TTL破解安装APP
    kbmmw 发布免费社区版
    一步一步实现kbmmw的httpsys使用https功能
    PostgreSQL 基本数据类型及常用SQL 函数操作
  • 原文地址:https://www.cnblogs.com/rainblack/p/5607502.html
Copyright © 2011-2022 走看看