- Posts: 61
- Thank you received: 3
Ask the community, share ideas, and connect with other LimeSurvey users!
public function init() { $this->subscribe('beforeControllerAction'); } public function beforeControllerAction() { $isPostRequest = $this->api->getRequest()->getIsPostRequest(); if (!$this->ownController && $isPostRequest && 'admin' == $this->event->get('controller') && 'tokens' == $this->event->get('action') && 'importldap' == $this->event->get('subaction')) { //... Here is to run another action from a different controller die(); } }