Hello.
I have a Comment model, which uses the Tree Behavior.
Comments are related to Post model, with the use of post_id field in
comments table.
The problem is, as described in topic - when I use the find('threaded')
function like this:
$comments=$this-Comment-find('threaded',
array(
Hello.
I think you need to add some index to the checkboxes (so it would be rather
an array), because if there are several items in $tutor variable, you keep
creating checkboxes with the same name - data[*Model*][available]. So every
checkbox has the same name and you keep overwriting them if
Oh, and if it did not work as expected, try putting a model name before the
available in the checkbox.
Let's say that you use the Tutor model - the code should look like this:
echo $this-Form-checkbox('Tutor.available.'.$i, array('value' = $id,
'checked' = 0, 'hiddenField'=false);
or without
Hi ,
Would you please let me know is there any sample code or tutorials to
integrate ajax populated form input field in cakephp 3. I found some
samples wth cakephp 2 but those are using js helper, so I am not sure how I
can bring those in cake PHP 3.
In my form I have a select box to select
It seems to me that the entity used to save the record in the save call is
updated and available in the controller after the save call is complete...
Are you saying that modifications in that Entity are not showing up in the
controller afterwards?
On Monday, October 6, 2014 4:34:41 PM UTC+7,