Reputation: 425
how to create dynamic sidebar in yii framework:
<?php $this->beginContent('//layouts/main'); ?>
<div id="content">
<?php echo $content; ?>
</div><!-- content -->
<?php $this->endContent(); ?>
look like:
<?php $this->beginContent('//layouts/main'); ?>
<div id="content">
<?php echo $content; ?>
<div id="sidebar">
<?php echo $sidebar; ?>
</div>
</div><!-- content -->
<?php $this->endContent(); ?>
Upvotes: 0
Views: 1447
Reputation: 143
I don't know if this answer is actual, but maybe somebody will help http://www.yiiframework.com/wiki/127/dynamic-sidebar-using-cclipwidget/
Upvotes: 1