Hi, I got service that connected with other services across the web.
When I ask another server, and receive error from it, i need to stop executing of my code and show error, that I receive, in view, by alert javascript.
How do this better?
Can I render javascript alert message from controller?
if (isset(Yii::app()->params['error'][$error])) {
$result['message'] = Yii::app()->params['error'][$error][Yii::app()->session['FROM'].'_message'];
}