CakePHP Cookbook Documentation 5.xdefine it manually to optimize performance or if you are concerned about people manipulating the Host header. In a CLI context (from command) the fullBaseUrl cannot be read from $_SERVER, as there is no webserver timestamp. Asset.cacheTime Sets the asset cache time. This determines the http header Cache-Control’s max- age, and the http header’s Expire’s time for assets. This can take anything that you version of PHP’s order of preference are: 1. The _method POST variable 2. The X_HTTP_METHOD_OVERRIDE header. 3. The REQUEST_METHOD header The _method POST variable is helpful in using a browser as a REST client (or anything0 码力 | 1080 页 | 939.39 KB | 1 年前3
 CakePHP Cookbook Documentation 5.xMiddleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660 Security Header Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661 define it manually to optimize performance or if you are concerned about people manipulating the Host header. In a CLI context (from command) the fullBaseUrl cannot be read from $_SERVER, as there is no webserver timestamp. Asset.cacheTime Sets the asset cache time. This determines the http header Cache-Control’s max-age, and the http header’s Expire’s time for assets. This can take anything that you version of PHP’s0 码力 | 848 页 | 2.53 MB | 1 年前3
 CakePHP Cookbook 2.x
not matched, will throw MethodNotAllowedException. The 405 response will include the required Allow header with the passed methods New in version 2.3. Deprecated since version 2.5: Use CakeRequest::allowMethod() not matched will throw MethodNotAllowedException. The 405 response will include the required Allow header with the passed methods New in version 2.5. CakeRequest::referer($local = false) Returns the referring visitor’s IP address. CakeRequest::header($name) Allows you to access any of the HTTP_* headers that were used for the request. For example: $this->request->header('User-Agent'); would return the user0 码力 | 1096 页 | 958.62 KB | 1 年前3
 CakePHP Cookbook 3.x
Email::addHeaders() now allow setting multiple headers of the same name. For that the value for the particular header key in the array argument passed to above functions must be an array. e.g. $email- >addHeaders(['og:tag' Http\Client no longer uses the cookie() method results when building requests. Instead the Cookie header and internal CookieCollection are used. This should only effect applications that have a custom HTTP information. New middleware has been added to make applying security headers easier. See Security Header Middleware for more information. New middleware has been added to transparently encrypt cookie data0 码力 | 1244 页 | 1.05 MB | 1 年前3
 CakePHP Cookbook 4.x
>setOption($optionName, $optionValue) to set these options. HtmlHelper::tableHeaders() now prefers header cells with attributes to be defined as a nested list. e.g ['Title', ['class' => 'special']]. Con HttpsEnforcerMiddleware now has an hsts option that allows you to configure the Strict-Transport-Security header. Mailer Mailer now accepts a autoLayout config which disabled auto layout in the ViewBuilder if define it manually to optimize performance or if you are concerned about people manipulating the Host header. In a CLI context (from shells) the fullBaseUrl cannot be read from $_SERVER, as there is no webserver0 码力 | 1249 页 | 1.04 MB | 1 年前3
 CakePHP Cookbook 4.x
Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 762 Security Header Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 763 viewBuilder()->setOption($optionName, $optionValue) to set these options. • HtmlHelper::tableHeaders() now prefers header cells with attributes to be defined as a nested list. e.g ['Title', ['class' => 'special']]. • HttpsEnforcerMiddleware now has an hsts option that allows you to configure the Strict-Transport-Security header. Mailer • Mailer now accepts a autoLayout config which disabled auto layout in the ViewBuilder0 码力 | 967 页 | 2.88 MB | 1 年前3
 CakePHP Cookbook 3.x
Email::addHeaders() now allow setting multiple headers of the same name. For that the value for the particular header key in the array argument passed to above functions must be an array. e.g. $email->addHeaders(['og:tag' Http\Client no longer uses the cookie() method results when building requests. Instead the Cookie header and internal CookieCollection are used. This should only effect applications that have a custom HTTP information. • New middleware has been added to make applying security headers easier. See security-header-middleware for more information. • New middleware has been added to transparently encrypt cookie0 码力 | 967 页 | 2.80 MB | 1 年前3
 CakePHP Cookbook 2.x
not matched, will throw MethodNotAllowedException. The 405 response will include the required Allow header with the passed methods New in version 2.3. Deprecated since version 2.5: Use CakeRequest::allowMethod() not matched will throw MethodNotAllowedException. The 405 response will include the required Allow header with the passed methods New in version 2.5. CakeRequest::referer($local = false) Returns the referring visitor’s IP address. CakeRequest::header($name) Allows you to access any of the HTTP_* headers that were used for the request. For example: $this->request->header('User-Agent'); would return the user0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1
 













