Error

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

/home/elitsolutions/protected/views/works/view.php(2)

01 <?php
02 $slug = Utility::slugify($model->title);
03 $canonical = 'http://'.Yii::app()->request->getServerName().'/'.Yii::t('translation','islerimiz').'/'.'-'.$slug.$model->id;
04 $this->coverImage=$model->cover_img;
05 $breadcrumb_title = Yii::t('translation','İşlərimiz');
06 $breadcrumb_link = Yii::app() -> baseUrl.'/'.Yii::app()->language.'/'.Yii::t('translation','islerimiz');
07 
08 $this->breadcrumbs=array(
09     $breadcrumb_title=>$breadcrumb_link,
10     $model->title,
11 );
12 $this->pageTitle = $model->title.'|'.Yii::t('translation','İşlərimiz').' | '.Yii::t('translation',Yii::app()->name);
13 
14 // set facebook opengraph url

Stack Trace

#4
+
 /home/elitsolutions/protected/controllers/WorksController.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-29 02:37:33 nginx Yii Framework/1.1.13