Or you could write a function to filter the country array so you only
pass in countries other than the ones specified..


On Jul 17, 8:43 am, Jacob Coby <[EMAIL PROTECTED]> wrote:
> Short answer: no.
>
> http://trac.symfony-project.org/browser/branches/1.1/lib/helper/FormH...
>
> line 228.
>
> You could write your own helper that only displays the countries you  
> want.
>
> On Jul 17, 2008, at 11:32 AM, Vinch wrote:
>
>
>
>
>
> > Hello,
>
> > I want to do something with the select_country_tag (http://
> >www.symfony-
> > project.org/api/1_1/FormHelper#method_select_country_tag)
>
> > I know it's possible to select only countries you want, for example :
>
> > echo select_country_tag('country', 'FR', array('countries' =>
> > array('US','FR')));
>
> > But is it possible to do the opposite : exclude countries from the
> > list, something like :
>
> > echo select_country_tag('country', 'FR', array('excludes' =>
> > array('US','FR')));
>
> > This would display all countries except France and United States.
> > Maybe it's already possible but I can't find what I need in
> > documentation.
>
> > Any idea?
>
> > Thanks!
>
> --
> Jacob Coby
> [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to