This is in:
http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.custom
gammamatrix wrote:
>
> 15.3.9. Custom Elements
>
> class __construct($name, $options = null)
>
> should be
>
> public function __construct($name, $options = null)
>
> <?php
> class My_Element_Text extends Zend_Form_Element
> {
> class __construct($name, $options = null)
> {
> $this->addPrefixPath('My_Decorator', 'My/Decorator/', 'decorator')
> ->addFilters('StringTrim')
> ->addValidator('Regex', false, array('/^[a-z0-9]{6,}$/i'))
> ->addDecorator('TextItem');
> parent::__construct($name, $options);
> }
> }
> ?>
>
> I have not created an issue - I do not know how to do so.
>
>
--
View this message in context:
http://www.nabble.com/Error-in-manual---15.3.9.-Custom-Elements-tp15907289s16154p15907290.html
Sent from the Zend Framework mailing list archive at Nabble.com.