示例#1
0
 public function actionAdmin()
 {
     $model = new Gasolina('search');
     $model->unsetAttributes();
     if (isset($_GET['Gasolina'])) {
         $model->setAttributes($_GET['Gasolina']);
     }
     $this->render('admin', array('model' => $model));
 }
示例#2
0
文件: index.php 项目: dev-lav/htdocs
<?php

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

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

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