Form helper issue with euro symbol

2012-02-28 Thread Kro
Hi, I have a form input which is taking in a rate title. This has worked fine in the past but when a euro symbol is added to a title Cake doesn't seem to be converting it to 'euro' as I would expect. The core file, layout and database are all using utf-8 encoding. I'm just wondering if there is

form helper issue for associated models inside and outside a plugin

2009-07-23 Thread maurozadu
We have a plugin (let’s name it “Cms”). This plugin has a model called Image, used to add images to a model. The Image model is inside the plugin; others models are, of course, outside (for example the “Page” model). The relationship is made on the fly, with a code like this

Form Helper Issue

2008-04-16 Thread B3
Hi, I recently noticed a weird issue regarding the form helper. I have a model with 2 habtm associations - one of them being 'Local'. So here's what I don't understand: When using $form-input('Local') in an add/edit-form cake's rendering a multiple-select-box, which is not my intention and

Re: Form Helper Issue

2008-04-16 Thread grigri
Read : http://book.cakephp.org/view/85/saving-related-model-data-habt It describes the proper way to create a habtm form and save the related data [especially the last sentence!]. Also, I'm not sure I understand about the multiple-select-box. You've defined an assoiciation where `A` has and

Re: Form Helper Issue

2008-04-16 Thread Björn Biele
If I want to save the B's which have/belong to A one by one it is a proper solution not to use a multiple select box. Finally i got the idea using: $form-input('Local', array('multiple' = false)) could help and it worked! The fact that using 'type' = 'select' is producing messed up data

Re: Form Helper Issue

2008-04-16 Thread TechSteve
i think the reason why have this error is because of that cake supposes the input is from a multiple-select-box, whose value is an array, but not from a single-select-box (dorp-down-box), whose value is a single string. so when cake tries to read elements from an array but the feed is a string,

Re: Form helper issue

2007-08-13 Thread [EMAIL PROTECTED]
In this case the URL with GET parameters is not readable at all :-). For examle this is might be a result of search or filter form. On Aug 13, 7:42 am, Grant Cox [EMAIL PROTECTED] wrote: It's intentional, for convenience. The simplest solution would be to use

Form helper issue

2007-08-12 Thread [EMAIL PROTECTED]
If I do echo $form-input('Model.id') and then echo $form- input('island_param'), Cake is using Model to create the second one's attribute tags and assigning $this-data['Model']['island_param'] in the controller.why doesn't it put it in $this- data['island_param']? Is this supposed to be a

Re: Form helper issue

2007-08-12 Thread Grant Cox
It's intentional, for convenience. The simplest solution would be to use $this- input('General.island_param') and access the submitted data in $this- data['General']['island_param']. It doesn't matter that General isn't a model. On Aug 13, 9:34 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: