On Wed, Dec 26, 2012 at 10:25 AM, Javier Garcia <[email protected]> wrote:
> Any idea?

A solution was posted on Nabble, but didn't make it's way to the list:

$this->addElement('submit', 'submit', array(
        'id' => 'next',
        'ignore'   => true,
        'label' => 'save and next'
));

Basically, the second argument is the element id and/or name, and as
such has to follow HTML rules for naming (no spaces, etc.). What
you're trying to do is set the button label -- and thus the label
attribute needs to be provided.

>
>
> On 12/24/2012 10:53 AM, Javier Garcia wrote:
>>
>> Hi,
>>
>> i have this button in a form:
>>
>>         $this->addElement('submit', 'save and next', array(
>>                     'id' => 'next'
>>                     ));
>>
>>
>> but when i render it the text in the button is all togheter: saveandnext.
>>
>> Any help?
>>
>> Javi
>
>
>
> --
> List: [email protected]
> Info: http://framework.zend.com/archives
> Unsubscribe: [email protected]
>
>



--
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to