Error

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

/home/elitsolutions/protected/views/blogcategory/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     $this -> breadcrumbs = array(
09     "Blog"=>Yii::app()->baseUrl.'/'.Yii::app()->language.'/blog',
10     $model -> title, );
11 
12 } else {
13     //parent blogun parent-i tapilir eger varsa
14     $headparent = $parent->parentcategory;
15     $slug_parent = Utility::slugify($parent -> title);

Stack Trace

#4
+
 /home/elitsolutions/protected/controllers/BlogcategoryController.php(61): CController->render()
56         {
57             $pagenumber=1;
58         }
59         $this->render('view',array(
60             'model'=>$this->loadModel($id),
61             'pagenumber'=>$pagenumber,
62         ));
63     }
64 
65     /**
66      * 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-29 15:28:53 nginx Yii Framework/1.1.13