29 lines
653 B
PHP
29 lines
653 B
PHP
<?php
|
|
|
|
|
|
namespace app\widgets;
|
|
|
|
use yii\base\Widget;
|
|
|
|
class FormWidget extends Widget
|
|
{
|
|
public $top = null;
|
|
public $tabs = [];
|
|
public $writeView = null;
|
|
public $postService = null;
|
|
public $validation = null;
|
|
public $model = null;
|
|
|
|
public function run()
|
|
{
|
|
if (isset($_GET['o']))
|
|
return $this->render('form', [
|
|
'top' => $this->top,
|
|
'tabs' => $this->tabs,
|
|
'writeView' => $this->writeView,
|
|
'postService' => $this->postService,
|
|
'validation' => $this->validation,
|
|
'model' => $this->model
|
|
]);
|
|
}
|
|
} |