Example #1
0
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\web\View;
use common\models\config\Config;
use common\includes\CommonUtility;
/**
 * @var yii\web\View $this
 * @var app\models\Content $model
 * @var yii\widgets\ActiveForm $form
 */
$this->registerJsFile('static/common/js/common.js');
$formatArray = CommonUtility::getTitleFormat();
$formatValueArray = CommonUtility::getTitleFormatArray($model);
$contentFlags = CommonUtility::getFlag();
$att1Lable = Config::getValue('content_att1_label', '属性1');
$att1Array = Config::getContentAtt('content_att1_name');
$att2Lable = Config::getValue('content_att2_label', '属性2');
$att2Array = Config::getContentAtt('content_att2_name');
$att3Lable = Config::getValue('content_att3_label', '属性3');
$att3Array = Config::getContentAtt('content_att3_name');
?>
    <input type="hidden" id="content-channel_id" class="form-control" name="Content[channel_id]" value="<?php 
echo $chnid;
?>
">
  
    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => 128]);
?>