add newsletter
This commit is contained in:
32
backend/models/CustomerNewsLetterModel.php
Normal file
32
backend/models/CustomerNewsLetterModel.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace backend\models;
|
||||
|
||||
use Yii;
|
||||
use yii\base\Model;
|
||||
|
||||
use yii\web\UploadedFile;
|
||||
|
||||
|
||||
/**
|
||||
* ContactForm is the model behind the contact form.
|
||||
* @property \Yii\web\UploadedFile $file
|
||||
*/
|
||||
class CustomerNewsLetterModel extends Model{
|
||||
|
||||
|
||||
public $text;
|
||||
public $subject;
|
||||
|
||||
public $allCustomer;
|
||||
|
||||
public function rules(){
|
||||
return [
|
||||
[['text','subject'],'required'],
|
||||
['text','string'],
|
||||
['subject','string'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user