formhelper
How to format the value in a edit field in cakephp
The price is a float value, and I want to display it like 1.000,00 instead of 1000.00 I know I can use an afterfind callback to change the value, but I will need the original value to do some math.[详细]
2023-04-06 13:56 分类:问答How to add a select all checkbox
I have this line: echo $form->input(\'management_categories\',array(\'options\' => $instrumentCategoriesManagement,\'type\' =&开发者_Go百科gt; \'select\',\'multiple\' => \'checkbox\',\'selec[详细]
2023-04-02 18:59 分类:问答Form helper "input date" bug in cakePHP?
I\'ve used the f开发者_高级运维ormhelper in cakephp echo $this->Form->input(\'birth_dt\', array( \'label\' => \'Date of birth\'));[详细]
2023-03-09 17:54 分类:问答Cakephp Multiple Checkboxes in a row
When the form helper crea开发者_StackOverflowtes checkboxes, they stack vertically.I want them in a row horizontally to save space.How do I do this?Try doing each checkbox individually.[详细]
2023-02-23 14:53 分类:问答cakePHP: How to change the ID of a form element (using the form helper)?
I\'ve created a form which has a loop to display a number of rows. I have a select on each row using the form helper. The IDs it creates are all the same, is there a way to add a counter, or some defi[详细]
2023-02-14 11:33 分类:问答How can I override cake FormHelper?
I need to change the $form->create behaviour, so I created a helper to use instead of the native formHelper:[详细]
2023-02-13 05:21 分类:问答Using Numeric Keys with CakePhp FormHelper Select
I\'m using the FormHelper (cake 1.3) to create a select box from an array. The array uses numbers as keys but the select box ignores those numbers and uses a zero-based index for the select box option[详细]
2023-02-07 05:25 分类:问答How to remove default select tag value which is set empty in cakephp
Consider the following code: echo $this->Form->year(\'expiry\',date(\'Y\'),date(\'Y\')+2) This produces output something like:[详细]
2023-02-03 17:25 分类:问答Is CakePhp 'standards compliant' when generating HTML, Forms, etc?
So I\'ve been reading a lot of \"Designing with Web Standards\" and really enjoying it.I\'m a big CakePhp user, and as I look at the source for various form elements that Cake creates with its FormHel[详细]
2023-02-02 10:47 分类:问答rails seems to have a problem with text_area
Rails 3.0.3 does not seems to accept <%= f.text_area :message, :class => \"share_ta\" %> as a valid statement, and says ActionView::Template::Error (undefined method \'message\' for []:Array)[详细]
2023-02-01 07:36 分类:问答