hi John,... I have tried with "value'=>'Search' and it didn't work
either,...
On Wednesday, May 15, 2013 11:45:55 AM UTC-7, John Sposato wrote:
>
> It's the VALUE property that you need to set to 'Search' if you want the
> button to say search.
>
> On Friday, May 10, 2013 8:52:39 PM UTC-4, Chris wrote:
>>
>> hi Andre,... thank you for your reply,...
>>
>> this: <?php echo $this->Form->end(array('text'=>'Search', 'div'=>false));
>> ?> remove the <div>...
>> however value of the button says "Submit" and NOT "Search" ,...
>> 'text'=>'Search',
>>
>> here is the source:
>> <input text="Search" type="submit" value="Submit" />
>>
>>
>>
>>
>> On Friday, May 10, 2013 4:34:58 AM UTC-7, André Luis wrote:
>>>
>>> Try: $this->Form->end(array('div'=>false,'text'=>'Send'));
>>>
>>> Em sexta-feira, 10 de maio de 2013 01h39min13s UTC-3, Chris escreveu:
>>>>
>>>> hi guys,... how can I removing <div> in Form->end closing, in cakephp
>>>> 1.3 ?
>>>> it works with 'div' => false on input and select fields but not on
>>>> Form->end
>>>>
>>>> <?php echo $this->Form->create('User', array('url' => 'find', 'div' =>
>>>> false)); ?>
>>>> <span style="float: left; text-align: left; margin: 0 10px 0 20px;
>>>> width: 150px; ">
>>>> <?php echo $this->Form->input('User.username', array('type'=>'text',
>>>> 'label'=> 'username', 'div' => false)); ?>
>>>> </span>
>>>> <span style="float: left; text-align: left; margin: 20px 10px 0 20px;
>>>> width: 100px; ">
>>>> <?php $ranks = array(Configure::read('User.ranks')); ?>
>>>> <?php echo $this->Form->select('rank', $ranks, null, array('div' =>
>>>> false, 'empty' => 'users role' )) ?>
>>>> </span>
>>>> <span style="float: left; text-align: left; margin: 20px 10px 0 20px;
>>>> width: 100px; ">
>>>> <?php echo $this->Form->end('Search', array('div' => false)); ?>
>>>> </span>
>>>>
>>>>
>>>> with <span> in Form->end I still see <div>.....</div> in sourse
>>>> <div class="submit"><input type="submit" value="Search" /></div>
>>>>
>>>> thank you in advance
>>>> chris
>>>>
>>>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.