CakePHP Cookbook 3.x
strings (e.g. 2017-07-09T12:33:00+00:02) in addition to the previously accepted format. If you have a subclass of DateTimeType you may need to update your code. New Features Scoped Middleware Middleware can configuration defined in your AppController, and some configuration defined in a subclass, only the configuration in the subclass will be used. Controller::httpCodes() has been removed, use Cake\Network\Response::httpCodes() endif; ?> If you’d prefer using a templating language like Twig [https://twig.sensiolabs.org], a subclass of View will bridge your templating language and CakePHP. Template files are stored in src/Template/0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
strings (e.g. 2017- 07-09T12:33:00+00:02) in addition to the previously accepted format. If you have a subclass of DateTimeType you may need to update your code. New Features Scoped Middleware Middleware can configuration defined in your AppController, and some configuration defined in a subclass, only the configuration in the subclass will be used. • Controller::httpCodes() has been removed, use Cake\Network unknown user If you’d prefer using a templating language like Twig126, a subclass of View will bridge your templating language and CakePHP. Template files are stored in src/Template/0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 2.x
audience you’re serving to. If you’d prefer using a templating language like Twig, or Smarty, a subclass of View will bridge your templating language and CakePHP. A view file is stored in /app/View/, webrunner now includes links to re-run a test with debug output. Generated test cases for Controller now subclass ControllerTestCase. Error Handling When repeat exceptions, or exception are raised when rendering The request and response objects. These should be instances of CakeRequest & CakeResponse or a subclass thereof. Dispatcher::parseParams() now only accepts a CakeRequest object. Dispatcher::baseUrl()0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
audience you’re serving to. If you’d prefer using a templating language like Twig, or Smarty, a subclass of View will bridge your templating language and CakePHP. A view file is stored in /app/View/, now includes links to re-run a test with debug output. • Generated test cases for Controller now subclass ControllerTestCase. Error Handling • When repeat exceptions, or exception are raised when rendering The request and response objects. These should be instances of CakeRequest & CakeResponse or a subclass thereof. • Dispatcher::parseParams() now only accepts a CakeRequest object. • Dispatcher::baseUrl()0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 4.x
response headers. Application and plugin exceptions that set response headers should be updated to subclass HttpException. Cake\Core\Exception\Exception was renamed to Cake\Core\Exception\CakeException. the above error would be treated as a 500 error and use the error500 template. Exceptions that subclass Cake\Http\Exception\HttpException, will have their error code used as an HTTP status code if the this is a contact form. Creating a Form Generally when using the Form class you’ll want to use a subclass to define your form. This makes testing easier, and lets you re-use your form. Forms are put into0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
response headers. Application and plugin exceptions that set response headers should be updated to subclass HttpException. • Cake\Core\Exception\Exception was renamed to Cake\Core\Exception\CakeException the above error would be treated as a 500 error and use the error500 template. Exceptions that subclass Cake\Http\Exception\HttpException, will have their error code used as an HTTP status code if the this is a contact form. Creating a Form Generally when using the Form class you’ll want to use a subclass to define your form. This makes testing easier, and lets you re-use your form. Forms are put into0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook Documentation 5.xthe above error would be treated as a 500 error and use the error500 template. Exceptions that subclass Cake\Http\Exception\HttpException, will have their error code used as an HTTP status code if the this is a contact form. Creating a Form Generally when using the Form class you’ll want to use a subclass to define your form. This makes testing easier, and lets you re-use your form. Forms are put into0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xthe above error would be treated as a 500 error and use the error500 template. Exceptions that subclass Cake\Http\Exception\HttpException, will have their error code used as an HTTP status code if the this is a contact form. Creating a Form Generally when using the Form class you’ll want to use a subclass to define your form. This makes testing easier, and lets you re-use your form. Forms are put into0 码力 | 848 页 | 2.53 MB | 1 年前3
共 8 条
- 1













