gata basic ul
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace app\models;
|
||||
use app\core\Model;
|
||||
|
||||
class ContactForm extends Model{
|
||||
public string $subject = '';
|
||||
public string $body = '';
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'subject' => [self::RULE_REQUIRED],
|
||||
'body' => [self::RULE_REQUIRED]
|
||||
];
|
||||
}
|
||||
|
||||
public function labels(): array{
|
||||
return [
|
||||
'subject' => 'Enter your subject',
|
||||
'body' => 'Enter the body'
|
||||
];
|
||||
}
|
||||
|
||||
public function send(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user