PHP notice

Trying to get property of non-object

/home/k/konturtoru/test/public_html/protected/controllers/AdditionalPagesController.php(46)

34         );
35     }
36 
37     public function actionPage($url) {
38         $content = AdditionalPages::model()->findByAttributes(array("url" => $url));
39         $this->pageTitle = isset($content->title) ? $content->meta_title : 'kontur-tour.ru';
40         $keywords = isset($content->keywords) ? $content->keywords : 'kontur-tour.ru';
41         Yii::app()->clientScript->registerMetaTag($keywords, 'keywords');
42         $description = isset($content->description) ? $content->description : 'kontur-tour.ru';
43         Yii::app()->clientScript->registerMetaTag($description, 'description');
44         $this->render('pages',
45                 array(
46                     'content' => $content->text,
47                     'url'=>$url,
48                 )
49              );
50     }
51 
52     /**
53      * Lists all models.
54      */
55 /*    public function actionIndex() {
56         Yii::import("application.modules.Shop.controllers.GoodsController");
57         $counter_target_date = CounterTargetDateHelper::getCounterTargetDate();
58         $gc = new GoodsController(0);

Stack Trace

#14
+
 /home/k/konturtoru/test/public_html/index.php(21): CApplication->run()
16       ini_set('display_errors', true);
17 }
18 
19 
20 require_once($yii);
21 Yii::createWebApplication($config)->run();
22 
23 //$profiler_namespace = 'xhprof_testing';
24 //$xhprof_data = xhprof_disable();
25 //$xhprof_runs = new XHProfRuns_Default();
26 //$run_id = $xhprof_runs->save_run($xhprof_data, "xhprof_testing");
2024-03-28 18:21:26 Apache/2.2.29 (Gentoo) mod_dp/0.99.7 Phusion_Passenger/4.0.60 PHP/5.3.29-pl0-gentoo mod_wsgi/4.4.21 Python/2.7.18 Yii Framework/1.1.14