title: CakePHP Tree Behaviour - Tree vs. Threaded in Controller
body: <p>Using the example in the Cookbook: 
  <a href="http://book.cakephp.org/2.0/en/core-libraries/behaviors/tree.html" rel="nofollow">http://book.cakephp.org/2.0/en/core-libraries/behaviors/tree.html</a></p>
  
  <p>If you debug() this you get a flat array() of category(id => name) </p>
  
  <p>Which is fine for most purposes, but if you wanted to create navigation based on this and had a slug for the URL, rather than the id, you're out of luck. </p>
  
  <p>I'm aware that I could use $this->Category->find('threaded') in the controller to get all fields but it lacks the convenience of the flat list because I have to create a recursive function to generate the links using the slug, exactly what I'd hoped to avoid. </p>
  
  <p>So what's the best way to get the additional Category.slug field I need in the view? </p>