$model = new User('scenarioName');
//and then....
$model->validate()
or the second manner:
$model = new User();
//and then....
$model->validate('scenarioName');What are the differences?
Thanks.
I hope I don't answer any stupid question.
Posted 03 June 2010 - 09:42 AM
$model = new User('scenarioName');
//and then....
$model->validate()
$model = new User();
//and then....
$model->validate('scenarioName');
Posted 03 June 2010 - 10:23 AM
Posted 03 June 2010 - 05:34 PM
Mike, on 03 June 2010 - 10:23 AM, said:
Posted 03 June 2010 - 05:54 PM
Javier, on 03 June 2010 - 05:34 PM, said: