Re: Dynamic list in Cakephp, how to do?

2007-12-06 Thread metasan
hi, I had to do something similar recently. The way you can do it : You can add an Event on for the list2, so when the user click on it, it will populate by an Ajax request to a function in your controller. For the list2 observe the checkbox and use an Ajax request to get the list1 populated a

Dynamic list in Cakephp, how to do?

2007-12-06 Thread Steveston
I have a list and I need to populate it either with $array1 or $array2. Both $array1 and $array2 are returned db query results. I want to have a check box. So that when I ticket the checkbox, the list will be populated with $array1; otherwise, use $array2 to populate the list. I think it is somet