1 answer
0 votes
FormHelper ignores 'class' attribute for hidden fields
When I try to pass a class attribute to a hidden field, FormHelper ignores that. My code:
<?php echo($form->input('Foo.bar', array('type' => 'hidden', 'class' => 'baz')); ?>
FormHelper::input() calls[1] FormHelper::hidden() where name and class...
2 answers
0 votes
Custom Functions / Arguments in Form Helper
I'm hoping to be able to do something like this:
echo $form-input('name', array('customAttribute' = true));
echo $form-input('password', array('description' = 'Must be at least 8 chrs long, contain a number and symbol'));
The idea is to be able to...
1 answer
0 votes
Hashing input values from form.
Hello,
I validating form input password:
but values doesnt matching:
I think, that password_confirm is hashed , and password value not.
How could i hashed password value from input?
Thanks for any reply..
'password' => array(
'empty' =>... 1 answer
0 votes
How to use other fields than id when adding something with belongsTo relationship.
I guess this is pretty basic thing, but let's say I want to add comment which belongs to a post. Now I have id in a dropdown menu to tell which post this comment belongs to.
Is there a way to have for example posts titles in dropdown menu to...
0 answers
0 votes
Collecting Tabular Input
I want user to enter the information for multiple model instances and submit them all at once.
Is there a tutorial for this?
1 answer
0 votes
How to make rounded corner textbox using css at cakephp?
Hai,
What we normally did for html and css as following:
<div class="loginboxdiv">
<input class="loginbox" name="username" type="text" />
</div>
.loginboxdiv
{
margin:0;
height:21px;
width:146px;
background:url(login_bg.gif) no-repeat... 0 answers
0 votes
inputs type=>minute??
I am using the $form-inputs() method, as it generates <fieldset's to keep my form organized.
As the API says about the input method:
- type - Force the type of widget you want. e.g. type = 'select'
This works fine for types like 'select', 'text',...
0 answers
0 votes
capture string of input instead of array number?
Hi
I have an input that is fed from an array like;
$sales = $this-Lead-User-find('list',
array(
'fields' = 'username', 'position'));
and i access it like this in my view;
echo $form-input('sales', array
(
'label' = '',
'type' = 'select',
'options' =...
0 answers
0 votes
For loop creates 7 inputs when there are only 6 items
Ok. So here is my query and set of the array in the controller:
// Retrieve clump information for the edits page
$clumps = $this->Clump->find('all',array('fields'=>array('Clump.id','Clump.name')));
// Set the... 0 answers
0 votes
Use never ending [] array in form name
Ok. So I have checked everywhere online and the only thing I can find to produce an array within the form name using the Form helper is the following:
$this->Form->input('Person.add1.address',array('type'=>'text'));
But I want to allow the user...
2 answers
0 votes
How to redisplay user inputs after validation?
Cake seems to return form inputs to the default value if a form does not validate. How can I redisplay user inputs so they don't have to enter them again? I would prefer not to use javascript in this instance.