add frontend collection
This commit is contained in:
@@ -30,6 +30,7 @@ class CollectionCreate extends \common\models\Collection
|
||||
public $accountMap;
|
||||
public $account;
|
||||
public $totals;
|
||||
public $userCartTotal;
|
||||
|
||||
public $timestampEnd;
|
||||
public $timestampStart;
|
||||
@@ -38,7 +39,10 @@ class CollectionCreate extends \common\models\Collection
|
||||
public function rules(){
|
||||
return [
|
||||
['end','required'],
|
||||
[[ 'end' , ], 'date' ,'format' =>Yii::$app->formatter->datetimeFormat , 'timestampAttribute' => 'timestampEnd' ,'timestampAttributeFormat' => 'yyyy-MM-dd HH:mm' ,'timeZone' => 'UTC' ],
|
||||
/**enable seconds*/
|
||||
[[ 'end' , ], 'date' ,'format' => 'yyyy-MM-dd HH:mm:ss' , 'timestampAttribute' => 'timestampEnd' ,'timestampAttributeFormat' => 'yyyy-MM-dd HH:mm:ss' ,'timeZone' => 'UTC' ],
|
||||
/*enable only minutes*/
|
||||
// [[ 'end' , ], 'date' ,'format' => 'yyyy-MM-dd HH:mm' , 'timestampAttribute' => 'timestampEnd' ,'timestampAttributeFormat' => 'yyyy-MM-dd HH:mm' ,'timeZone' => 'UTC' ],
|
||||
[[ 'end' ], 'validateEndDate' ]
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user