CakePHP Cookbook 3.x
Setting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable Responses Cookie Collections Creating Cookies Reading Cookies Controllers The App Controller Request Flow Controller Reading Response Bodies Reading JSON and XML Response Bodies Accessing Response Headers Accessing Cookie Data Checking the Status Code Changing Transport Adapters Inflector Summary of Inflector Methods set for Cake\Http\Response::withCookie() is deprecated. Instead you need to pass in Cake\Http\Cookie\Cookie instances. Cake\Validation\Validation::cc() has been renamed to creditCard(). Cake\View\ViewV0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
Mistakes with Immutable Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 Cookie Collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . set for Cake\Http\Response::withCookie() is deprecated. Instead you need to pass in Cake\Http\Cookie\Cookie instances. • Cake\Validation\Validation::cc() has been renamed to creditCard(). • Cake\View after which they will be removed. • Cake\Http\Client\CookieCollection is deprecated. Use Cake\Http\Cookie\CookieCollection in- stead. • Cake\View\Helper\RssHelper is deprecated. Due to infrequent use the0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.xSetting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable Responses Cookie Collections CookieCollection Creating Cookies Reading Cookies Controllers Controller The App Controller Reading Response Bodies Reading JSON and XML Response Bodies Accessing Response Headers Accessing Cookie Data Checking the Status Code Changing Transport Adapters Testing HttpClientTrait Inflector Inflector need to enable access by setting session.cookie_secure to false in your config config/app.php or config/app_local.php. (See CakePHP’s defaults on session.cookie_secure) In your UsersController, add the0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Setting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable Responses Cookie Collections CookieCollection Creating Cookies Reading Cookies Controllers Controller The App Controller Reading Response Bodies Reading JSON and XML Response Bodies Accessing Response Headers Accessing Cookie Data Checking the Status Code Changing Transport Adapters Testing HttpClientTrait Inflector Inflector Cake\Http\Client\Response::isOk() now returns true for all 2xx and 3xx response codes. Cake\Http\Cookie\Cookie::getExpiresTimestamp() now returns an integer. This makes it type match the one used in setcookie()0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.xMistakes with Immutable Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Cookie Collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . need to enable access by setting session.cookie_secure to false in your config config/app.php or config/app_local.php. (See CakePHP’s defaults on session.cookie_secure) In your UsersController, add the into groups. Once combined groups can be applied like middleware can: $routes->registerMiddleware('cookie', new EncryptedCookieMiddleware()); $routes->registerMiddleware('auth', new AuthenticationMiddleware());0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
Mistakes with Immutable Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 Cookie Collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Cake\Http\Client\Response::isOk() now returns true for all 2xx and 3xx response codes. • Cake\Http\Cookie\Cookie::getExpiresTimestamp() now returns an integer. This makes it type match the one used in setcookie() Previ- ously it would return /. • Cake\Cookie\CookieCollection::get() now throws an exception when accessing a cookie that doesn’t exist. Use has() to check for cookie existence. • The signature of Cake0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
system] (PHP syntax, with helpers) View helpers for AJAX, JavaScript, HTML forms and more Email, cookie, security, session, and request handling Components Flexible ACL [https://en.wikipedia.org/wiki/ require configuration. Some examples of components requiring configuration are Authentication and Cookie. Configuration for these components, and for components in general, is usually done in the $components 'controller' => 'users', 'action' => 'login' ) ), 'Cookie' => array('name' => 'CookieMonster') ); The previous fragment of code would be an example of0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
templating32 (PHP syntax, with helpers) • View helpers for AJAX, JavaScript, HTML forms and more • Email, cookie, security, session, and request handling Components • Flexible ACL33 • Data sanitization • Flexible require configuration. Some examples of components requiring configuration are Au- thentication and Cookie. Configuration for these components, and for components in general, is usually done in the $components array('controller'), 'loginAction' => array( 'controller' => 'users', 'action' => 'login' ) ), 'Cookie' => array('name' => 'CookieMonster') ); The previous fragment of code would be an example of configuring0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













