コード例 #1
0
ファイル: B.6.4.php プロジェクト: hscstudio/yii2-book-id
<?php

echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'username']]);
?>

<table class="table table-striped">
    <tr>
        <th>Modules</th>
        <th>Controllers</th>
        <th>Actions</th>
        <th>Auth</th>
    </tr>
    <?php 
foreach ($routes as $row) {
    ?>
        <tr >
            <td><?php 
    echo $row['module'];
    ?>
</td >
            <td><?php 
    echo $row['controller'];
    ?>
</td >
            <td><?php 
    echo $row['action'];
    ?>
</td >
            <td><?php 
    echo Html::checkbox('auth[]', $row['auth']);
    ?>
コード例 #2
0
ファイル: _col3.php プロジェクト: ibergonzi/country
<?php

use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model frontend\models\Accesos */
?>
<div class="accesos-col3">


    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'id_persona', 'ing_id_vehiculo', 'ing_fecha', 'ing_hora', 'ing_id_porton', 'ing_id_user', 'egr_id_vehiculo', 'egr_fecha', 'egr_hora', 'egr_id_porton', 'egr_id_user', 'id_concepto', 'motivo', 'cant_acomp', 'created_by', 'created_at', 'updated_by', 'updated_at', 'estado', 'motivo_baja']]);
?>

</div>
コード例 #3
0
ファイル: index1.php プロジェクト: BillsOfHealth/yii2-2015
use kartik\grid\GridView;
//use yii\grid\GridView;
use yii\bootstrap\ActiveForm;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\AboutUsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'About Us';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="about-us-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>
   
   
    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['subsection']]);
?>
   
    <?php 
Pjax::end();
?>
</div>

コード例 #4
0
ファイル: _entry.php プロジェクト: Tak0r/TwitterContestScore
<?php

/**
 * @author Frank Gehann <*****@*****.**>
 * @link https://github.com/Tak0r/TwitterContestScore
 * @license Beerware
 * @package Views
 */
use yii\helpers\Html;
?>

<h3><?php 
echo Html::a(Html::encode($model->name), ['contest/view', 'id' => $model->id]);
?>
</h3>

<?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['trigger', 'year', 'active:boolean', 'last_parse']]);