Thursday, June 20, 2013

Re: removing <div> in Form->end closing, in cakephp 1.3

thanks Glenn,... I'll try

On Sunday, June 9, 2013 7:52:49 PM UTC-7, Glenn Quinto wrote:
i found by this way, $this->Form->end(array('label' => 'Send', 'div' => FALSE));

On Friday, May 10, 2013 12:39:13 PM UTC+8, Chris wrote:
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: