Tagged: Helper


CakePHP: How to use/access view variables inside a Helper

In CakePHP 3 application, you can use the your view variables inside a Helper. There are 2 ways to access/use view variables in our Helper. 1. Access view variable using class property like $this->_View->viewVars You can...


CakePHP: How to create a helper

What is helper? Helper is a simple class file similar to Components. Helper is used in view files for presentation. We can use helper in view files, elements or layouts of our application. There...