本文整理匯總了PHP中backend\models\User::getAuthor方法的典型用法代碼示例。如果您正苦於以下問題:PHP User::getAuthor方法的具體用法?PHP User::getAuthor怎麽用?PHP User::getAuthor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類backend\models\User
的用法示例。
在下文中一共展示了User::getAuthor方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<?php
echo $form->field($model, 'judul')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'summary')->textInput(['maxlength' => true]);
?>
<?php
// $form->field($model, 'deskripsi')->textarea(['rows' => 6])
?>
<?php
echo $form->field($model, 'deskripsi')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'standard']);
?>
<?php
echo $form->field($model, 'author', ['template' => "{label}{input}\n{hint}\n{error}"])->dropDownList(ArrayHelper::map(User::getAuthor(), 'id', 'nama_depan'), ['prompt' => '-- Pilih --']);
?>
<?php
echo $form->field($model, 'sumber')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'schedule_date')->widget(DateTimePicker::className(), ['language' => 'en', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-m-dd hh:ii', 'todayBtn' => true]]);
?>
<?php
echo Html::activeLabel($model, 'tag');
?>
<?php
echo SelectizeTextInput::widget(['model' => $model->tag, 'name' => 'Artikel[tag]', 'id' => 'artikel-tag', 'value' => $model->isNewRecord ? '' : $model->tag, 'clientOptions' => ['plugins' => ['remove_button'], 'delimiter' => ',', 'persist' => false, 'create' => 'function(input){
return {