Revision #5 has been created by Yang He on Jun 29, 2012, 4:30:55 PM with the memo:
Removed broken link to Chinese translation
« previous (#4)
Changes
Title
unchanged
How to filter data using a dropdown list?
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
changed
[...]
* empty: this displays an extra dropdown list item at the beginning because this item is not provided by the `$categories` array.
* submit: this makes the dropdown list to be able to submit the form. If you change the current selection, the form enclosing the dropdown list will be submitted to the current page (because the submit value is empty).
Once the form is submitted, we will obtain a `cat` GET variable which contains the current category selection. We use this value to filter the extensions and display the corresponding results.
### Links
[Chinese version](http://www.itkuaixun.com/bbs/thread-199-1-1.html)