Hello people. I need your advice related to when to use either yii:app()->end() or return sentences.
For instance: If you want to terminate any method from any model…
$f = new LoginForm();
$f->username=$model->usuario;
$f->password=$passNoMd5;
if(!$f->login())
{
//code if not login and then exit...
//use yii:app()->end() ?
//or use return ?
}
[more code....]
So…, which are the differences when use either return or yii:app()->end() to exit from a method?
Thanks in advance.