OKyJIucT
9/30/2016 - 1:27 PM

in model scenario safe

in model scenario safe

public function scenarios()
{
    $scenarios = parent::scenarios();
    $scenarios['admin_create'] = ['email', 'firstname', 'lastname', 'pass_gen', 'role', 'group_id', 'date_start', 'time_start', 'time_end', 'rate', 'gmail', 'phone', 'skype'];
    $scenarios['profile'] = ['pass_gen', 'gmail', 'phone', 'skype'];

    return $scenarios;
}