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

use yii\helpers\Html;
/**
 * @var yii\base\View $this
 */
$this->params['breadcrumbs'][] = array('label' => __('oauth'), 'url' => url('oauth/site/index'));
$this->params['breadcrumbs'][] = $this->title;
?>

<?php 
echo \app\core\widget\Form::widget(array('model' => $model, 'yaml' => "@app/modules/oauth/forms/" . $name . ".yaml"));
?>

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

use yii\helpers\Html;
/**
 * @var yii\base\View $this
 */
$this->params['breadcrumbs'][] = array('label' => __('host'), 'url' => url('host/site/index'));
$this->params['breadcrumbs'][] = $this->title;
?>

<?php 
echo \app\core\widget\Form::widget(array('model' => $model, 'yaml' => "@app/modules/host/forms/host.yaml"));
?>

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

use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
 * @var yii\base\View $this
 */
$this->params['breadcrumbs'][] = array('label' => __('content type'), 'url' => url('content/site/index'));
$this->params['breadcrumbs'][] = $this->title;
?>

<?php 
echo \app\core\widget\Form::widget(array('model' => $model, 'form' => false, 'yaml' => "@app/modules/content/forms/" . $name . ".yaml"));
?>
<div class="control-group">
	<label class="control-label"><?php 
echo __('form widget');
?>
</label>
	<div class="controls">
		<?php 
echo Html::dropDownList('widget', $model->widget, $widget);
?>
	</div>
</div>
<div class="form-actions">
	<?php 
echo Html::submitButton(__('save'), null, null, array('class' => 'btn '));
?>
</div>
<?php