Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Custom Sidebar Menu with p3pages and yii-bootstrap
class SidebarMenu extends TbMenu {
public $rootNameId;
public $type = 'tabs';
public $stacked = 'true';
function init(){
$model = P3Page::model()->findByAttributes(array('nameId'=>$this->rootNameId));
$this->items = P3Page::getMenuItems($model);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment