Yii 1.1: pca-selector

Province, City, Area linkage dropDownlist
1 follower

This extension is is used to create three dropDownlist which linkaged together to choice a place in China mainland and Hongkong. This extension just re-packaged PCASClass project into Yii;

Resources


这个插件可以创建三个联动的下拉菜单,这三个联动列表之间相互关联,用来确定中国大陆和香港地区的地理位置名称。这个扩展仅仅是将PCASClass重新封装进Yii而已。

相关资源

Documentation

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions

Usage

See the following code example:

$this->widget('extension.PCASelector.SelectorWidget', array(
    'model' => $someCFormModel,
    'attributeCity' => 'city',
    'attributeArea' => 'area',
    'attributeProvince' => 'province',
 
    'labelCity' => 'City',
    'labelArea' => 'Area',
    'labelProvince' => 'Province',
 
    'selectSepartor' => ' ',
    'htmlOptions' => array(
        'class' => 'positionSelector',
     ),
 ));

Change Log

September 25, 2010

  • Fix bug : if one of province, city or area is not set, related dropdownlist will not be rendered;

July 19, 2010

  • Fix bug : init incorrect when attribute like $model->attributeArea exists;

July 5, 2010

  • Initial release.

Total 1 comment

#342 report it
bitshine at 2010/07/05 02:51am
很好

将来会有用

Leave a comment

Please to leave your comment.

Create extension