I am trying to populate a select box from a Category table with Tree Behavior.
$categories = $this->Category->generateTreeList(null,null,null,' ');
This lists all the categories. As the tree is upto 5 level deep, the select box gets populated massively.
Is there a way to limit the number of levels to generate so that I don't need to display all tree data ? I would like to display upto 3rd level only.
I am using CakePHP 2.3.5.