CakePHP
20
The controller as the name indicates controls the application. It acts like a bridge between
models and views. Controllers handle request data, makes sure that correct models are
called and right response or view is rendered. Methods in the controllers’ class are called
actions
. Each controller follows naming conventions. The Controller class names are in
plural form, Camel Cased, and end in Controller —
PostsController
.
AppController
The
AppConttroller
class is the parent class of all applications’ controllers.
This class
extends the
Controller
class of CakePHP.
AppController is defined at
Do'stlaringiz bilan baham: