class TestForm extends Model
{
public $propery;
public $property2;
public function save()
{
$model = new ModelActiveRecord;
$model2 = new AnotherModelActiveRecord;
$model->property = $this->property;
$model->property2 = $this->property2;
$model->save();
$model2->save();
}
//
public function TestAction()
{
$model = newTestForm;
}
//
return [‘adminEmail => ‘admin@example.com’];