Error

Non-static method Utility::slugify() cannot be called statically

/home/bakuguide/protected/controllers/EventsController.php(166)

154                 'today' => 'Bu gün',
155                 'future' => 'Tezliklə',
156                 'free' => 'Pulsuz',
157                 'popular' => 'Ən çox baxılanlar',
158                 'ongoing' => 'Davam edən',
159                 'past' => 'Keçmiş',   
160             );   
161             $type = Yii::app()->request->getParam('type'); 
162             $render = 'index';
163             //if entered type events like (today,free,popular and etc.) from url
164             if($type){ 
165                 $all_events_scopes = array_filter($all_events_scopes, function ($title) {  
166                    return Utility::slugify($title) == Yii::app()->request->getParam('type'); 
167                 }); 
168                 $all_events_scopes and $render = 'typed_events';                      
169             }    
170             $this->render($render ,array(    
171                'all_events_scopes'=>$all_events_scopes,  
172             ));                                      
173         }
174 
175 
176     }
177     /**
178      * Manages all models.

Stack Trace

#1
+
 /home/bakuguide/protected/controllers/EventsController.php(167): array_filter()
162             $render = 'index';
163             //if entered type events like (today,free,popular and etc.) from url
164             if($type){ 
165                 $all_events_scopes = array_filter($all_events_scopes, function ($title) {  
166                    return Utility::slugify($title) == Yii::app()->request->getParam('type'); 
167                 }); 
168                 $all_events_scopes and $render = 'typed_events';                      
169             }    
170             $this->render($render ,array(    
171                'all_events_scopes'=>$all_events_scopes,  
172             ));                                      
#14
+
 /home/bakuguide/public_html/index.php(21): CApplication->run()
16     defined('YII_DEBUG') or define('YII_DEBUG',true);
17     // specify how many levels of call stack should be shown in each log message
18     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
19 
20     require_once($yii);
21     Yii::createWebApplication($config)->run();
22 //}
23 //else
24 //    header("Location: https://www.facebook.com/bakuguidecom");
2024-03-29 15:54:33 nginx Yii Framework/1.1.28