PHP Classes

File: app/modules/blog/views/post/_form.php

Recommend this page to a friend!
  Classes of Oleg Lunegov   MicroPHP Framework   app/modules/blog/views/post/_form.php   Download  
File: app/modules/blog/views/post/_form.php
Role: Example script
Content type: text/plain
Description: Example script
Class: MicroPHP Framework
MVC framework for Web or command line applications
Author: By
Last change: Update of app/modules/blog/views/post/_form.php
Date: 2 months ago
Size: 608 bytes
 

Contents

Class file image Download
<?php

use Micro\Web\Html\Html;

/** @var \App\Modules\Blog\Models\Blog $model */
?>
<?= Html
::beginForm(''); ?>

    <div class="row">
        <?= Html::label('????????'); ?>
<?= Html::textField('Blog[name]', $model->name, ['required' => true]); ?>
</div>

    <div class="row">
        <?= Html::label('????????'); ?>
<?= Html::textArea('Blog[content]', $model->content, ['required' => true]); ?>
</div>

    <div class="row actions">
        <?= Html::submitButton($model->isNewRecord() ? '???????' : '????????'); ?>
</div>

<?= Html::endForm();