Okay, I got it!! I don't know if there is some Cake's better solution
but this works fine for me
I have made my own function that goes trough the whole threaded array
and extracts childs for top level section specified by ID.

/**
         * Extracts child node(s) for specific top level section id
         *
         * @param $Sections - an array outputed from $this->Section->find
('threaded');  Includes all branches generated with nested arrays.
         * @param $id - id of the top level section whose childs will be
returned
         * @return an array of childs of section specified
         */
        function getSectionChilds($Sections, $id){

                foreach($Sections as $Section)
                        {
                          if( $Section['Section']['id'] == $id ) return $Section
['children'];
                        }
                return false;
                }


On Mar 30, 8:39 pm, "[email protected]" <[email protected]> wrote:
> I have tried also $this->Section->children($id), that seems to be ok,
> but it doesnt generate such nice nested structure like find
> ('threaded').  Is there any change to filter threaded array similar
> way like getting childs from the tree? Tnkx Tomas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to