class ApiController extends Controller {
public function init() {
parent::init();
Yii::app()->errorHandler->errorAction='api/error';
}
public function actionError(){
echo json_encode(array(
'Status'=>500,
'Message'=>'Unknown error'
));
}
<input autocomplete="off" ng-keyup="$event.keyCode == 13 && saveNew($index, prop.id)" name="modelSelected" placeholder="Введите имя свойства" type="text" ng-model="prop.selected">