add UploadController 'rest' controller
This commit is contained in:
24
backend/models/UploadForm.php
Normal file
24
backend/models/UploadForm.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace backend\models;
|
||||
|
||||
use yii\base\Model;
|
||||
use common\models\User;
|
||||
|
||||
class UploadForm extends Model{
|
||||
|
||||
|
||||
public $image ;
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @formatter:off
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [['image',function ($attribute, $params) {}], ];
|
||||
}
|
||||
|
||||
public function save(){
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user