add newsletter

This commit is contained in:
2016-05-20 08:16:30 +02:00
parent 0b866917d5
commit e51f4a5934
27 changed files with 1120 additions and 16 deletions

View 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'],
];
}
}