Mar
14
14
The widely unused and powerful setAction()
Topics: Tutorials, CakePHP // 8 comments, 1,406 views
While working on this app, I thought I would give the not so used method, setAction() a spin. If you are unfamiliar with setAction(), its a method that will internally forward one action to another. This is incredibly useful as it allows you to switch actions without having to do another HTTP request, nor having to reload all the controller and related objects; could be a huge saver on overhead. Continue reading...