Changes
Title
unchanged
Creating a database-driven hierarchical Structure combined with CMenu and superfish
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
menu
Content
changed
Note: Please also take a look at the newer [EMenu extension](http://www.yiiframework.com/extension/emenu "Title"). This works even better that
the deprecated CDropDownMenu!
In this tutorial we will create a hierarchical Structure using the traditional adjacency list model. Yii's ActiveRecord paradigm makes it very easy to implement this structure via a join on itself. After this, we will use the new CMenu from yii 1.1 and implement it in conjunction with [superfish](http://users.tpg.com.au/j_birch/plugins/superfish/ "Title"), a jQuery plugin for creating menus.
The [CDropDownMenu extension](http://www.yiiframework.com/extension/cdropdownmenu "Title") will help us to accomplish this task.
I will also add a tutorial using a [Nested Set](http://dev.mysql.com/tech-resources/articles/hierarchical-data.html "Title") (using the wonderful [nested set extension](http://www.yiiframework.com/extension/nestedset/ "Title")) soon.[...]