Ejemplo n.º 1
0
        <?php 
$form = ActiveForm::begin(['id' => 'comment-form', 'validateOnBlur' => false]);
?>
        <div class="col-md-10">

            <div class="box box-solid">
                <div class="box-body">
                    <?php 
echo $form->field($model, 'content')->textarea(['rows' => 6]);
?>
                </div>

            </div>
        </div>
        <?php 
list($avatar, $username) = Module::getUserInfo($model);
?>
        <div class="col-md-2">

            <div class="box box-solid ">
                <div class="box-body">
                    <div class="record-info">

                        <div class="form-group clearfix">
                            <label class="control-label" style="float: left; padding-right: 5px;">
                                <?php 
echo $model->attributeLabels()['username'];
?>
 :
                            </label>
                            <span><?php 
Ejemplo n.º 2
0
 public function init()
 {
     parent::init();
     $this->prefix = \hass\comment\Module::getInstance()->id . ".";
 }