PHP warning

Undefined variable $model

/home/GIR/moshovercraft.ru/themes/custom/views/post/site/index.php(71)

59 
60 endforeach;
61 
62 if ($tag_id!=null){
63    $tagName = PostsTags::getTagName($tag_id);
64 } else{
65     $tagName='Все статьи портала';
66 }
67 ?>
68 
69 
70 <div class="indents acticles">
71     <h1><?php echo PostsTags::model()->findByAttributes(array("id" => $model->tag_id))->info?></h1>
72                           
73         <?php
74         /* $this->widget('CLinkPager', array(
75             'pages'=>$pages,
76             'nextPageLabel'=>'туда',
77             'prevPageLabel'=>'сюда',
78             'lastPageLabel'=>'последняя',
79             'firstPageLabel'=>'первая',
80             'pageSize' => 10,
81             'header'=>'',
82             'htmlOptions'=>array(
83                 'class'=>'',

Stack Trace

#4
+
 /home/GIR/moshovercraft.ru/protected/modules/post/controllers/SiteController.php(53): CController->render("index", array("models" => array(), "pages" => CPagination, "tag_id" => null))
48 
49         $models = Posts::model()->published()->findAll($criteria);
50 
51         $dataProvider = new CActiveDataProvider('Posts');
52         $this->render('index', array(
53             'models' => $models,
54             'pages' => $pages,
55             'tag_id' => null,
56         ));
57     }
58 
#14
+
 /home/GIR/moshovercraft.ru/index.php(16): CApplication->run()
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 
15 $config=dirname(__FILE__).'/protected/config/main.php';
16 Yii::createWebApplication($config)->run();
17 
18 
19 
20 
21 
2024-03-28 23:20:14 nginx/1.24.0 Yii Framework/1.1.30-dev