2014-01-23 00:13:21 2844次浏览 0条回答 0 悬赏 5 金钱

CException

Property "CWebApplication.errorHandler" is read only.

E:\APMServ\www\htdocs\yii\framework\base\CModule.php(513)

501 $this->setComponent($id,$component,$merge);
502 }
503
504 /*
505
Configures the module with the specified configuration.
506 @param array $config the configuration array
507
/
508 public function configure($config)
509 {
510 if(is_array($config))
511 {
512 foreach($config as $key=>$value)
513 $this->$key=$value;
514 }
515 }
516
517 /
518 Loads static application components.
519
/
520 protected function preloadComponents()
521 {
522 foreach($this->preload as $id)
523 $this->getComponent($id);
524 }
525
Stack Trace
#0
– E:\APMServ\www\htdocs\yii\framework\base\CModule.php(513): CComponent->__set("errorHandler", array("errorAction" => "site/error"))
508 public function configure($config)
509 {
510 if(is_array($config))
511 {
512 foreach($config as $key=>$value)
513 $this->$key=$value;
514 }
515 }
516
517 /

518 Loads static application components.
#1
– E:\APMServ\www\htdocs\yii\framework\base\CApplication.php(161): CModule->configure(array("name" => "My Web Application", "preload" => array("log"), "import" => array("application.models.
", "application.components."), "modules" => array(), ...))
156 $this->preinit();
157
158 $this->initSystemHandlers();
159 $this->registerCoreComponents();
160
161 $this->configure($config);
162 $this->attachBehaviors($this->behaviors);
163 $this->preloadComponents();
164
165 $this->init();
166 }
#2
– E:\APMServ\www\htdocs\yii\framework\YiiBase.php(125): CApplication->__construct("E:\APMServ\www\htdocs\120/protected/config/main.php")
120
to the constructor of the application class.
121 @return mixed the application instance
122
/
123 public static function createApplication($class,$config=null)
124 {
125 return new $class($config);
126 }
127
128 /**
129 Returns the application singleton or null if the singleton has not been created yet.
130
@return CApplication the application singleton, null if the singleton has not been created yet.
#3

  • E:\APMServ\www\htdocs\yii\framework\YiiBase.php(98): YiiBase::createApplication("CWebApplication", "E:\APMServ\www\htdocs\120/protected/config/main.php")
    #4
  • E:\APMServ\www\htdocs\120\index.php(13): YiiBase::createWebApplication("E:\APMServ\www\htdocs\120/protected/config/main.php")
    2014-01-22 15:53:46 Apache/2.2.9 (APMServ) mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6 Yii Framework/1.1.14
    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
zzlin5658888
实习生

zzlin5658888

注册时间:2014-01-23
最后登录:2014-01-23
在线时长:0小时10分
  • 粉丝0
  • 金钱0
  • 威望0
  • 积分0

热门问题