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 <[email protected]>wrote:

> Tree bahavior has nothing with tree helper if i'm right...
> --
> Lep pozdrav, Tilen Majerle
> http://majerle.eu
>
>
>
> 2011/1/21 Meroe Meroe <[email protected]>
>
>> 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
>> [email protected]<cake-php%[email protected]>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
> [email protected]<cake-php%[email protected]>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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to