Warning: Use of undefined constant hot - assumed 'hot' (this will throw an Error in a future version of PHP) in /data/wwwroot/lxy.me/wp-content/themes/Ality/inc/sticky-cat.php on line 5


Yii中省市区三级联动

Yii中省市区三级联动
1.view层 <?php $this->pageTitle = '个人设置 - ' . Yii::app()->name; echo $this->renderPartial('optionSidebar'); echo CHtml::dropDownList('idProvince', '', CHtml::listData(CActiveRecord::model('AddProvinces')->findAll(), 'provinceid', 'province'), array( 'prompt' => '选择省份', 'ajax' => array( 'type' => 'POST...