Difference between #10 and #11 of
Creating a database-driven hierarchical Structure combined with CMenu and superfish

Revision #11 has been created by Alex D. on Oct 15, 2011, 9:48:54 PM with the memo:

correction
« previous (#10) next (#12) »

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

[...]
public function getListed() {
$subitems = array();
if($this->childs) foreach($this->childs as $child) {
$subitems[] = $child->getListed();
}
$returnarray = array('label' => $this->
headlintitle, 'url' => array('Hierarchy/view', 'id' => $this->id));
if($subitems != array())
$returnarray = array_merge($returnarray, array('items' => $subitems));
return $returnarray;
}
```
[...]
15 0
24 followers
Viewed: 62 864 times
Version: 1.1
Category: Tutorials
Tags: menu
Written by: thyseus
Last updated by: thyseus
Created on: Jan 16, 2010
Last updated: 12 years ago
Update Article

Revisions

View all history