CException

Notification and its behaviors do not have a method or closure named "detailItem".

/home/ipqwuyjmhosting/common/yii/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) && $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

#1
+
 /home/ipqwuyjmhosting/public_html/solaodong/protected/controllers/NotificationController.php(38): CActiveRecord->__call("detailItem", array("27"))
33     }
34     public function actionDownload($id)
35     {
36         $module = ucfirst($this->id);
37         $class = new $module;
38         $class = $class->detailItem($id);
39 
40         $uploadPath = YiiBase::getPathOfAlias('webroot').baseuser.'/'.$this->id;
41 
42         if (is_dir($uploadPath)) {
43             $file = $uploadPath.'/'. $class->fileupload;
#11
+
 /home/ipqwuyjmhosting/public_html/solaodong/public_html/index.php(15): CApplication->run()
10     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11     $config = dirname(__FILE__).'/../protected/config/projDev.php';
12 }
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2024-03-29 19:15:25 LiteSpeed Yii Framework/1.1.14