CakePHP Cookbook 2.x
the requested action’s logic, but before the controller’s renders views and layout. Component::shutdown(Controller $controller) Is called before output is sent to the browser. Component::beforeRedirect(Controller Cookbook Documentation, Release 2.x App Init/Load/Shutdown Methods static App::init() Return type void Initializes the cache for App, registers a shutdown function. static App::load(string $className) instance, if a class is name MyCustomClass the file name should be MyCustomClass.php static App::shutdown() Return type void Object destructor. Writes cache file if changes have been made to the $_map0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 2.x
the requested action’s logic, but before the controller’s renders views and layout. Component::shutdown(Controller $controller) Is called before output is sent to the browser. Component::beforeRedirect(Controller Including files with App::import() Overriding classes in CakePHP Loading Vendor Files App Init/Load/Shutdown Methods Events System Example Event Usage Accessing Event Managers Dispatching Events Registering Return type: Return type: Return type: App Init/Load/Shutdown Methods static App::init() void Initializes the cache for App, registers a shutdown function. static App::load(string $className) boolean0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 4.x
dynamically drop and create constraints. Controller The components’ Controller.shutdown event callback has been renamed from shutdown to afterFilter to match the controller one. This makes the callbacks more Controller.initialize Controller.startup Controller.beforeRedirect Controller.beforeRender Controller.shutdown Controller Callback Methods By default the following callback methods are connected to related action. Cake\Controller\Controller::afterFilter(EventInterface $event) Called during the Controller.shutdown event which is triggered after every controller action, and after rendering is complete. This is0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.xapplications that use property_exists() on components. The components’ Controller.shutdown event callback has been renamed from shutdown to afterFilter to match the controller one. This makes the callbacks more Controller.initialize Controller.startup Controller.beforeRedirect Controller.beforeRender Controller.shutdown Controller Callback Methods By default the following callback methods are connected to related action. Cake\Controller\Controller::afterFilter(EventInterface $event) Called during the Controller.shutdown event which is triggered after every controller action, and after rendering is complete. This is0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xapplications that use property_exists() on components. • The components’ Controller.shutdown event callback has been renamed from shutdown to afterFilter to match the controller one. This makes the callbacks more initialize • Controller.startup • Controller.beforeRedirect • Controller.beforeRender • Controller.shutdown Controller Callback Methods By default the following callback methods are connected to related action. Cake\Controller\Controller::afterFilter(EventInterface $event) Called during the Controller.shutdown event which is triggered after every controller action, and after ren- dering is complete. This0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
dynamically drop and create constraints. Controller • The components’ Controller.shutdown event callback has been renamed from shutdown to afterFilter to match the controller one. This makes the callbacks more initialize • Controller.startup • Controller.beforeRedirect • Controller.beforeRender • Controller.shutdown Controller Callback Methods By default the following callback methods are connected to related x Cake\Controller\Controller::afterFilter(EventInterface $event) Called during the Controller.shutdown event which is triggered after every controller action, and after ren- dering is complete. This0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 3.x
Controller.initialize Controller.startup Controller.beforeRedirect Controller.beforeRender Controller.shutdown Controller Callback Methods By default the following callback methods are connected to related given action. Cake\Controller\Controller::afterFilter(Event $event) Called during the Controller.shutdown event which is triggered after every controller action, and after rendering is complete. This is controller executes the requested action’s logic, but before the controller renders views and layout. shutdown(Event $event) Is called before output is sent to the browser. beforeRedirect(Event $event, $url0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
initialize • Controller.startup • Controller.beforeRedirect • Controller.beforeRender • Controller.shutdown Controller Callback Methods By default the following callback methods are connected to related Release 3.10 Cake\Controller\Controller::afterFilter(Event $event) Called during the Controller.shutdown event which is triggered after every controller action, and after ren- dering is complete. This renders views and layout. More on Controllers 337 CakePHP Cookbook Documentation, Release 3.10 shutdown(Event $event) Is called before output is sent to the browser. beforeRedirect(Event $event, $url0 码力 | 967 页 | 2.80 MB | 1 年前3
共 8 条
- 1













