So, you are in an action within a controller and you want to access the current module name and action, so that you can use it in your code instead of hardcoding it. A very convenient method to help you do that is $this->getAllParam('param);
class AdvancedPlugin_ApiController extends Core_Controller_Action_Standard { public function indexAction() { $moduleName = $this->getParam('module'); $controllerName = $this->getParam('controller'); $actionName = $this->getParam('action'); } }
0 Comments
|
AuthorI'm Mehdi, a web and mobile app developer ArchivesCategories |