title: navigation menu using cakePhp tree
body: <p>I am using CakePHP tree to generate my navigation menu .
  I have generated it successfully. now i need to show them in navigation behavior.
  I have tried. it is working but after this basic code i dont know what to do after this .. how could i build navigation..</p>
  
  <p>Updated answer :) :</p>
  
  <p><a href="https://stackoverflow.com/questions/23089182/navigation-menu-using-cakephp-tree/23101808#23101808">navigation menu using cakePhp tree</a></p>
  
  <p><strong>My HomeController.php</strong></p>
  
  <pre><code>App::uses('AppController', 'Controller');
  class HomeController extends AppController {
      var $name='home';
      public function index() {
          $this-&gt;layout = "front_end_index";
          $this-&gt;loadModel('Category');
          $category_tree = $this-&gt;Category-&gt;generateTreeList();
          $categories_array = array();
          foreach($category_tree as $k =&gt; $v)
          {
              $categories_array[$k] = $this-&gt;Category-&gt;find('first', array('conditions' =&gt; array('Category.id' =&gt; $k)));
          }
  
          $this-&gt;set('cat_info',$categories_array);
  
      }
  }
  </code></pre>
  
  <p><strong>My category.ctp</strong></p>
  
  <pre><code>&lt;?php foreach($cat_info as $cat_info) {
        if($cat_info['Category']['parent_id'] == ''){ ?&gt;
           &lt;ul class="menus"&gt;
          &lt;li&gt;&lt;h4&gt;&lt;?php echo $cat_info['Category']['name'] ;?&gt;&lt;/h4&gt;&lt;/li&gt;
      &lt;?php } ?&gt;
          &lt;/ul&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p><strong>Navigation array sample :</strong></p>
  
  <pre><code>Array
  (
      [1] =&gt; Array
          (
              [Category] =&gt; Array
                  (
                      [id] =&gt; 1
                      [parent_id] =&gt; 
                      [lft] =&gt; 1
                      [rght] =&gt; 42
                      [name] =&gt; My Categories
                      [url] =&gt; http://google.com
                  )
          )
      [2] =&gt; Array
          (
              [Category] =&gt; Array
                  (
                      [id] =&gt; 2
                      [parent_id] =&gt; 1
                      [lft] =&gt; 2
                      [rght] =&gt; 17
                      [name] =&gt; Fun
                      [url] =&gt; http://google.com
                  )
          )
      [3] =&gt; Array
          (
              [Category] =&gt; Array
                  (
                      [id] =&gt; 3
                      [parent_id] =&gt; 2
                      [lft] =&gt; 3
                      [rght] =&gt; 8
                      [name] =&gt; Sport
                      [url] =&gt; http://google.com
                  )
          )
  </code></pre>