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

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

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

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