zend framework2 - Change ZF2 ExceptionStrategy from Controller -
are there methods change exceptionstrategy controller within zend framework 2? need actions return jsonmodel. when exception occurs standard exceptionstrategy doesn't put excpetion info jsonmodel (the same promblem: exceptionstrategy doesn't work jsonstrategy).
i've tried no result:
$exceptionstrategy = new jsonexceptionstrategy(); $exceptionstrategy->attach($this->geteventmanager());
jsonexceptionstrategy - link above.
Comments
Post a Comment