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 so
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
$this->Page->bindMode
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, th
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
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 belo
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 a
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 $this->input('General.island
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]>
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