gata basic ul

This commit is contained in:
Cerbu Andrei Mihnea
2023-05-10 03:28:30 +03:00
parent 90f12ab916
commit a739a66ae4
19 changed files with 255 additions and 110 deletions
+28
View File
@@ -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;
}
}