CHAPTER 7Working with Controllersand Models
A single operation in Cake will generally invoke multiple MVC elements and will work in those elements simultaneously. For instance, in the previous chapter, you used the Form helper both to receive fetched data from the controller and model, and to send user form data to the controller for processing. Changing something in the controller can affect how the Form helper behaves, which is most noticeable when manipulating something like the $this->data
variable.
As I discuss more advanced ways of developing controllers and models in this chapter, don't forget that changes to the view may be necessary for the operation or customization to work correctly. For example, managing sessions is such an integrated ...
Get Beginning CakePHP: From Novice to Professional now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.