CException

Не определено свойство "SearchForm.region".

/var/www/www-root/data/www/privatka.ua/framework/web/helpers/CHtml.php(2729)

2717             $name=substr($attribute,0,$pos);
2718             $value=$model->$name;
2719             foreach(explode('][',rtrim(substr($attribute,$pos+1),']')) as $id)
2720             {
2721                 if((is_array($value) || $value instanceof ArrayAccess) && isset($value[$id]))
2722                     $value=$value[$id];
2723                 else
2724                     return null;
2725             }
2726             return $value;
2727         }
2728         else
2729             return $model->$attribute;
2730     }
2731 
2732     /**
2733      * Appends {@link errorCss} to the 'class' attribute.
2734      * @param array $htmlOptions HTML options to be modified
2735      */
2736     protected static function addErrorCss(&$htmlOptions)
2737     {
2738         if(empty(self::$errorCss))
2739             return;
2740 
2741         if(isset($htmlOptions['class']))

Stack Trace

#2
+
 /var/www/www-root/data/www/privatka.ua/protected/views/search/index.php(215): CHtml::activeDropDownList(SearchForm, "region", null, array("prompt" => "Вся Україна", "onchange" => "GetCity(event)", "class" => "selectstyle select-con"))
210         </div>
211         <div class="col-xs-12 col-sm-4">
212             <div class="block">
213                 <span class="label-con">Область</span>
214                 <div class="form-group">
215                     <?php echo CHtml::activeDropDownList($model, 'region', $model->region_arr, array('prompt' => 'Вся Україна', 'onchange' => 'GetCity(event)', 'class' => 'selectstyle select-con')); ?>
216                 </div>    
217                 <span class="label-con">Місто</span>
218                 <div class="city">
219                     <?php echo CHtml::activeDropDownList($model, 'id_city', $model->city_arr, array('prompt' => 'Місто', 'class' => 'selectstyle select-con select-width')); ?>
220                 </div>
#7
+
 /var/www/www-root/data/www/privatka.ua/protected/controllers/SearchController.php(225): CController->render("index", array("model" => SearchForm, "level1" => array(Categories, Categories, Categories, Categories), "level2" => array(), "level3" => array(), ...))
220         }
221 
222         $criteria = new CDbCriteria;
223         $criteria->condition = 'parent_id=0';
224         $level1 = Categories::model()->findAll($criteria);
225         $this->render('index', array('model' => $model, 'level1' => $level1, 'level2' => array(), 'level3' => array(), 'filters' => array()));
226     }
227 
228     public function actionResult($father = false, $parent = false, $category = false, $operation = false, $filters = false, $like = false, $condition_p = false, $sort = false, $price_from = false, $price_to = false, $region = false, $id_city = false, $from_individuals = false, $from_shops = false, $from_market = false, $from_companies = false, $currency = 0) {
229 
230         $model = new SearchForm();
#17
+
 /var/www/www-root/data/www/privatka.ua/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();
2024-03-19 07:21:36 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 Yii Framework/1.1.17