Re: Question: QuickForm IT_Static & hierselect
| From: | Alexey Borzov | Date: | Thu, 30 Oct 2008 10:36:22 +0000 |
| Subject: | Re: Question: QuickForm IT_Static & hierselect | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29384@lists.php.net to get a copy of this message | ||
Hi,
Michael Mussulis wrote:
Could you please explain how I would use the extended class below? Do I create a new element like $form->addElement('MyHierselect') or do I use it statically somehow? (Btw, I tried the above method, but I got an 'element not registered' error).Either register the class to be able to use the above way, or just add an instance of the class via addElement(): $form->addElement(new MyHierselect(...)); That's documented, please read the docs.