开发者

Symfony search form

开发者 https://www.devze.com 2023-03-24 01:06 出处:网络
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 :

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

精彩评论

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