Problem with tree data - find('threaded') displays all, but getting threaded data from node (or using children() function) does not return all records

2014-10-07 Thread Anna P
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(

Re: get the id's from checkbox list

2014-10-07 Thread Anna P
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

Re: get the id's from checkbox list

2014-10-07 Thread Anna P
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

Ajax populates form fields in cakephp 3

2014-10-07 Thread Jipson Thomas
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

Re: Best practice for changing entity in afterSave

2014-10-07 Thread heavyKevy
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,