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

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -