Discussion:
removing <div> in Form->end closing, in cakephp 1.3
Chris
2013-05-10 04:39:13 UTC
Permalink
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.
André Luis
2013-05-10 11:34:58 UTC
Permalink
Try: $this->Form->end(array('div'=>false,'text'=>'Send'));
Post by Chris
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)); ?>
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.
Chris
2013-05-11 00:52:39 UTC
Permalink
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" />
Post by André Luis
Try: $this->Form->end(array('div'=>false,'text'=>'Send'));
Post by Chris
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.
John Sposato
2013-05-15 18:45:55 UTC
Permalink
It's the VALUE property that you need to set to 'Search' if you want the
button to say search.
Post by Chris
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',
<input text="Search" type="submit" value="Submit" />
Post by André Luis
Try: $this->Form->end(array('div'=>false,'text'=>'Send'));
Post by Chris
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.
Chris
2013-05-18 07:29:11 UTC
Permalink
hi John,... I have tried with "value'=>'Search' and it didn't work
either,...
Post by John Sposato
It's the VALUE property that you need to set to 'Search' if you want the
button to say search.
Post by Chris
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',
<input text="Search" type="submit" value="Submit" />
Post by André Luis
Try: $this->Form->end(array('div'=>false,'text'=>'Send'));
Post by Chris
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.
g***@public.gmane.org
2013-06-10 02:52:49 UTC
Permalink
i found by this way, $this->Form->end(array('label' => 'Send', 'div' =>
FALSE));
Post by Chris
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)); ?>
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.
Chris
2013-06-21 06:44:54 UTC
Permalink
thanks Glenn,... I'll try
Post by g***@public.gmane.org
i found by this way, $this->Form->end(array('label' => 'Send', 'div' =>
FALSE));
Post by Chris
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.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...