Re: HTML_Select
| From: | Stig S. Bakken | Date: | Sat, 26 Oct 2002 15:21:53 +0000 |
| Subject: | Re: HTML_Select | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10267@lists.php.net to get a copy of this message | ||
On Sat, 26 Oct 2002, Bertrand Mansion wrote:
> As stated before, there is already an HTML_Select class in PEAR. It is in
> /php4/pear/HTML. I don't understand why you release another HTML_Select
> class that only output some stupid country names in your own language.
>
> I don't see the use of it when all you have to do is an array of country
> names. Which php user can't do that ? If you want to release such classes,
> go to the tip and tricks section of the zend or phpbuilder site or whatever
> (or why not Manuel Lemos site).
>
> Furthermore, I don't remember anyone voting for this to be in pear, but I
> might be wrong as I thought it didn't belong here in the first place so I
> didn't bother reading the thread.
>
> The only thing it adds to pear is a bit more confusion about what the
> HTML_Select class does.
As soon as this pops up, it would make much more sense to have a package
that defines different data such as countries, .us states, .uk counties,
.ca provinces, .no "fylker" or whatever. Binding them straight into a
class stops making sense the second someone wants to use HTML_Select for
something else. Detach the data and the presentation.
Now, what about class names for the different lists? Data_Something?
List_Something? Constant_Something? Ideas anyone?
- Stig