Check this out: http://book.cakephp.org/view/1339/Tree

On Wed, Sep 7, 2011 at 9:48 AM, Greg Skerman <[email protected]> wrote:

> Start by reading the book - you'll find most of what you need right there.
>
> you create:
> 1) a database table which complies with what the tree behavior expects
> 2) a model for that table which acts as a tree
> 3) You surface that data in your view
> 4) you write some code in your view to convert the tree into an unordered
> list or definition list or whatever you like/need (you may even like to
> write this as a helper for reuse later on)
> 5) you use some javascript to convert that list into the menu that you want
> (alternatively you could use a control, like jsTree or something if you want
> an actual tree list - in this case your view is probably going to be an XML
> view returning data to the tree control)
>
> if you need further explanation, I'm going to need to know more about what
> specifically you are trying to build.
>
>
>
> On Wed, Sep 7, 2011 at 1:01 PM, Richardus Ari P <[email protected]
> > wrote:
>
>> i need tutorial Mr.Greg
>>
>> On 7 Sep, 09:26, Greg Skerman <[email protected]> wrote:
>> > using the tree behavior (core behavior, read the manual) , you can pull
>> out
>> > a nicely structured tree of data.
>> >
>> > you can then wrap some <ul>/<li> tags around it to make a HTML list...
>> >
>> > most javascript/jquery menu's I've seen take these tags and build you a
>> nice
>> > menu based on data stored in your db...
>> >
>> > that what you need?
>> >
>> > On Wed, Sep 7, 2011 at 12:05 PM, Richardus Ari P
>> > <[email protected]>wrote:
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > please give me tutorial about helper tree_utility.....
>> > > i am make menus in web but i have not idea..
>> >
>> > > On 6 Sep, 18:58, AD7six <[email protected]> wrote:
>> > > > On Sep 6, 11:52 am, Richardus Ari P <[email protected]>
>> wrote:
>> >
>> > > > > can give me some example helper tree_utility in cakephp????????
>> >
>> > > > yes
>> >
>> > > --
>> > > Our newest site for the community: CakePHP Video Tutorials
>> > >http://tv.cakephp.org
>> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
>> > > others with their CakePHP related questions.
>> >
>> > > To unsubscribe from this group, send email to
>> > > [email protected] For more options, visit this
>> group
>> > > athttp://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
>>
>
>  --
> 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
>

-- 
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