In View(CakePHP), the proper way to get current controller?
Use $this->params[‘controller’] to get the current controller. You can do a debug($this->params) to see other available variables.
Use $this->params[‘controller’] to get the current controller. You can do a debug($this->params) to see other available variables.