Error

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

/home/elitsolutions/protected/views/blog/view.php(3)

01 <?php
02 $this->pagename=$model -> title;
03 $slug = Utility::slugify($model->title);
04 $this->coverImage=$model ->cover_img;
05 //blogun butun parent-leri 
06     $parent=$model->parentcategory;
07     if(empty($parent))
08         {
09                 $this->breadcrumbs=array(
10                 "Blog"=>Yii::app()->baseUrl.'/'.Yii::app()->language.'/blog',
11                 $model->title,
12             );
13         
14         }
15     else

Stack Trace

#4
+
 /home/elitsolutions/protected/controllers/BlogController.php(55): CController->render()
50      * @param integer $id the ID of the model to be displayed
51      */
52     public function actionView($id)
53     {
54         $this->render('view',array(
55             'model'=>$this->loadModel($id),
56         ));
57     }
58 
59     /**
60      * Creates a new model.
#19
+
 /home/elitsolutions/public_html/index.php(14): CApplication->run()
09     defined('YII_DEBUG') or define('YII_DEBUG', true);
10     // specify how many levels of call stack should be shown in each log message
11     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
12 
13     require_once ($yii);
14     Yii::createWebApplication($config) -> run();
15 
16 
17 ?>
2024-03-28 23:19:33 nginx Yii Framework/1.1.13