CException

DefaultController en zijn behaviors hebben geen method of closure met naam "hasMessage".

/home/rijken/domains/vanbaal-tuinhout.nl/public_html/framework/base/CComponent.php(266)

254     public function __call($name,$parameters)
255     {
256         if($this->_m!==null)
257         {
258             foreach($this->_m as $object)
259             {
260                 if($object->getEnabled() && method_exists($object,$name))
261                     return call_user_func_array(array($object,$name),$parameters);
262             }
263         }
264         if(class_exists('Closure', false) && ($this->canGetProperty($name) || property_exists($this, $name)) && $this->$name instanceof Closure)
265             return call_user_func_array($this->$name, $parameters);
266         throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".',
267             array('{class}'=>get_class($this), '{name}'=>$name)));
268     }
269 
270     /**
271      * Returns the named behavior object.
272      * The name 'asa' stands for 'as a'.
273      * @param string $behavior the behavior name
274      * @return IBehavior the behavior object, or null if the behavior does not exist
275      */
276     public function asa($behavior)
277     {
278         return isset($this->_m[$behavior]) ? $this->_m[$behavior] : null;

Stack Trace

#0
+
 /home/rijken/domains/vanbaal-tuinhout.nl/public_html/protected/views/layouts/main-sub.php(15): CComponent->__call()
10             <? echo $this->renderPartial('application.views.partials.menu'); ?>
11           </div>
12         </div>
13       </div>
14     </div>
15     <? if ($this->hasMessage()) { ?>
16       <div id="message-wrapper">
17         <? echo $this->renderPartial('application.views.partials.message'); ?>
18       </div>
19     <? } ?>
20     <div class="content-wrapper">
#4
+
 /home/rijken/domains/vanbaal-tuinhout.nl/public_html/protected/modules/account/controllers/DefaultController.php(186): CController->render()
181         }
182       }
183     if (Yii::app()->user->id)
184       $this->redirect(Yii::app()->baseUrl.'/'.$this->module->id.'/default/edit');
185     else
186       $this->render('register', array('lAccountFormModel' => $lAccountFormModel,'lShippingFormModel' => $lShippingFormModel));
187   }
188 
189   public function accessRules()
190   {
191     return array(
#12
+
 /home/rijken/domains/vanbaal-tuinhout.nl/public_html/index.php(11): CApplication->run()
06 
07 // remove the following line when in production mode
08 defined('YII_DEBUG') or define('YII_DEBUG', true);
09 
10 require_once($yii);
11 Yii::createWebApplication($config)->run();
2024-03-28 14:18:59 Apache/2 Yii Framework/1.1.22