PHP Error

Division by zero

/home/ans/domains/ans.swidnica.pl/public_html/protected/views/site/view.php(129)

117     $this->widget('zii.widgets.CDetailView', array(
118     'data'=>$model,
119     'attributes'=>array(
120         'name',
121         'types.name',
122         array(
123             'name'=>'price',
124             'value'=>$model->price.'zł'
125         ),
126         array(
127             'name'=>'Cena za metr',
128             'label' => 'Cena za metr',
129             'value'=>round($model->price / $model->area, 2).'zł/m<sup>2</sup>',
130             'type'=>'html',
131         ),
132         'id',
133         array(
134             'name'=>'area',
135             'value'=>$model->area.'m<sup>2</sup>',
136             'type'=>'html',
137         ),
138         'other.otherType',
139         'other.rooms',
140         'other.floor',
141         'location',

Stack Trace

#4
+
 /home/ans/domains/ans.swidnica.pl/public_html/protected/controllers/SiteController.php(176): CController->render("view", array("model" => null))
171         
172         public function actionWyswietl($id)
173         {
174             $model=Products::model()->findByPk((int)$id);
175             $this->render('view',array(
176             'model'=>$model,
177         ));
178         }
179 
180     /**
181      * Logs out the current user and redirect to homepage.
#14
+
 /home/ans/domains/ans.swidnica.pl/public_html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 22:49:40 Apache Yii Framework/1.1.8