Hi there cakephp experts! I am looking for you help on a dyanmic dropdown list with dyanamic optgroup. Suppose I have two tables:
countries: id, country_na
bind tableB to tableA in tableA model, do
$hasMany = array("tableB"=>array("className"=>"tableB","foreignKey"=>"aId"));
then use
find("all")
might need
$this->tableA->recursive->2
right before find