public function actionAdmin()
 {
     $model = new IguInvestment('search');
     $model->unsetAttributes();
     if (isset($_GET['IguInvestment'])) {
         $model->setAttributes($_GET['IguInvestment']);
     }
     $this->render('admin', array('model' => $model));
 }
Example #2
0
<?php

$this->breadcrumbs = array(IguInvestment::label(2), Yii::t('app', 'Index'));
$this->menu = array(array('label' => Yii::t('app', 'Create') . ' ' . IguInvestment::label(), 'url' => array('create')), array('label' => Yii::t('app', 'Manage') . ' ' . IguInvestment::label(2), 'url' => array('admin')));
?>

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

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));