CException

Albums and its behaviors do not have a method or closure named "getByTag".

/home/a56radio7/public_html/vendor/yiisoft/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) || 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

#1
+
 /home/a56radio7/public_html/protected/modules/albums/controllers/AlbumsController.php(95): CActiveRecord->__call("getByTag", array("Хороших людей много!"))
090      */
091     public function actionTag($tag)
092     {
093         Yii::import('application.modules.albums.models.Albums');
094         $tag = CHtml::encode($tag);
095         $albums = Albums::model()->getByTag($tag);
096 
097         if (empty($albums)) {
098             throw new CHttpException(404, Yii::t('AlbumsModule.albums', 'Albums not found!'));
099         }
100 
#11
+
 /home/a56radio7/public_html/public/index.php(39): CApplication->run()
34 $confManager = new yupe\components\ConfigManager();
35 $confManager->sentEnv(\yupe\components\ConfigManager::ENV_WEB);
36 
37 require __DIR__ . '/../vendor/autoload.php';
38 
39 Yii::createWebApplication($confManager->merge($base))->run();
2024-03-19 04:00:51 LiteSpeed Yii Framework/1.1.17