开发者

Symfony search form

I use symfony 1.4.12 with Zend Lucene. And I make custom search, I have field like category, country...I create module and I have MysearchSucess.php and there I write hardcode, like :

<select name="ads_country" id="ads_country">
<option value="AF">Afg开发者_开发知识库hanistan</option>
<option value="AX">Åland Islands</option>
<option value="AL">Albania</option>
</select>

etc... But there are in symfony nice widget like sfWidgetFormI18nChoiceCountry; Or for examle, if user add category, I will need to add new category in code manualy... Is it possible to use widgets in my case? how to organize it right without hardcode? Thank you!


Ok, I read this and all ok!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜