php - ZF2 RESTful Controller Events Not Triggering -


should zf2's mvc events trigger same action , rest controllers?

i'm writing , acl module attaches event onbootstrap. problem dispatch event not triggered when controller extends abstractrestfulcontroller, when extends abstractactioncontroller. know workarounds?

//acl module.php public function onbootstrap(mvcevent $e){   $eventmanager = $e->getapplication()->geteventmanager();   $eventmanager->attach(mvcevent::event_dispatch, array($this, "checkauth"); }   public function checkauth(mvcevent e){   //this method gets called when controller extends abstractactioncontroller } 


Comments

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -