在我模塊的module.config.php,我有這樣的事情: namespace Application;
return [
//...
// myroute1 will route to IndexController fooAction if the route is matching '/index/foo' but regardless of request me
在我的IndexController的indexAction,我想拋出和捕獲異常,然後在catch塊,我想要做的事,像這樣: namespace Application\Controller;
use Zend\Mvc\Controller\AbstractActionController;
class IndexController extends AbstractActionContr