Chris
2013-05-10 04:39:13 UTC
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-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to cake-php-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
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-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to cake-php-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.