Пример #1
0
<?php

$this->breadcrumbs = array(IguVoucherManagement::label(2), Yii::t('app', 'Index'));
$this->beginWidget('zii.widgets.CPortlet', array('htmlOptions' => array('class' => '')));
$this->widget('bootstrap.widgets.TbMenu', array('type' => 'pills', 'items' => array(array('label' => 'Create', 'icon' => 'icon-plus', 'url' => Yii::app()->controller->createUrl('create'), 'linkOptions' => array()), array('label' => 'List', 'icon' => 'icon-th-list', 'url' => Yii::app()->controller->createUrl('index'), 'active' => true, 'linkOptions' => array()), array('label' => 'Manage', 'icon' => 'icon-search', 'url' => Yii::app()->controller->createUrl('admin'), 'linkOptions' => array()))));
$this->endWidget();
?>

<h1><?php 
echo GxHtml::encode(IguVoucherManagement::label(2));
?>
</h1>

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
 public function actionAdminAgent()
 {
     $model = new IguVoucherManagement('voucherByAgent');
     $model->unsetAttributes();
     if (isset($_GET['IguVoucherManagement'])) {
         $model->setAttributes($_GET['IguVoucherManagement']);
     }
     $this->render('adminAgent', array('model' => $model));
 }