cake-php@googlegroups.com
[Top] [All Lists]

Re: Tree Behavior

Subject: Re: Tree Behavior
From: Meroe Meroe
Date: Fri, 21 Jan 2011 16:04:37 -0500
You are correct, but previous questions mine and (google searches) led me to that.  I'm stuck.

On Fri, Jan 21, 2011 at 3:38 PM, Tilen Majerle <tilen.majerle@xxxxxxxxx> wrote:
Tree bahavior has nothing with tree helper if i'm right...
--
Lep pozdrav, Tilen Majerle



2011/1/21 Meroe Meroe <whmeroe@xxxxxxxxx>
Hello folks,

I'm having a bit of an issue understanding the tree behavior.  I have a tasks table with fields such as name,status,date_due etc...

The output I'm getting right now is great except I want to display additional data columns.

Current Output:
  • Task 1
    • Task 1 - child
    • Task 1 - child 2
      • Task 2 - child 1
    • Task 1 - child 3
      • Task 3 - child 1
  • Task 2
    • Task 2 - child 1
I'm using the Tree Behavior and this helper -> http://bakery.cakephp.org/articles/AD7six/2008/01/24/tree-helper-1

The example in my controller is as follows

function index(){
$stuff = $this->ProjectTaskList->find('all',
        array('fields' => array('name','status', 'lft', 'rght'), 'order' => 'lft ASC'));

$this->set('stuff', $stuff);
echo $tree->generate($stuff, array('model' => 'ProjectTaskList')));
}

Can anyone point me in the proper direction?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php
<Prev in Thread] Current Thread [Next in Thread>