HTML_QuickForm2_Node: ID generation

From: Date: Mon, 03 May 2010 19:04:27 +0000
Subject: HTML_QuickForm2_Node: ID generation
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30488@lists.php.net to get a copy of this message
Hi Alexey, Element IDs have to be specified explicitly in the attributes array, otherwise they are autogenerated - with an index appended to them: Element named "username" gets ID "username-0". While this makes sense for large and complicated forms, it is not really convenient for small forms with no duplicated element names. How am I supposed to get "pretty" IDs automatically? Overwriting generateID() is not really possible, since I would have to do that for every single element class. -- Regards/Mit freundlichen Grüßen Christian Weiske -=≡ Geeking around in the name of science since 1982 ≡=-

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.general (#30488) next »