CakePHP Cookbook 3.x
objects in-place are now deprecated, and superseded by methods that follow the immutable object patterns described in the PSR-7 standard. Several properties on Cake\Network\Request have been deprecated: deprecated and made obsolete by the PSR- 7 HTTP stack. With responses heading towards immutable object patterns as recommended by the PSR-7 standards, a number of ‘helper’ methods in Response have been deprecated while migrating from a CakePHP 2.x application, you can instead use the InflectedRoute class. Note Patterns used for route elements must not contain any capturing groups. If they do, Router will not function0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
objects in-place are now deprecated, and superseded by methods that follow the immutable object patterns described in the PSR-7 standard. Several properties on Cake\Network\Request have been deprecated: deprecated and made obsolete by the PSR-7 HTTP stack. With responses heading towards immutable object patterns as recommended by the PSR-7 standards, a number of ‘helper’ methods in Response have been deprecated while migrating from a CakePHP 2.x application, you can instead use the InflectedRoute class. Note: Patterns used for route elements must not contain any capturing groups. If they do, Router will not function0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.xmake sure that the {controller} and {plugin} parameters are correctly lowercased and dashed. Note Patterns used for route elements must not contain any capturing groups. If they do, Router will not function route elements that should be converted to passed arguments ->setPass(['slug']) // Set the matching patterns for route elements ->setPatterns([ 'slug' => '[a-z0-9-_]+', 'lang' => 'en|fr|es', ]) // from the request and response objects. They let you interact with groups of cookies using immutable patterns, which allow the immutability of the request and response to be preserved. Creating Cookies class0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xmake sure that the {controller} and {plugin} parameters are correctly lowercased and dashed. Note: Patterns used for route elements must not contain any capturing groups. If they do, Router will not function route elements that should be converted to passed arguments ->setPass(['slug']) // Set the matching patterns for route elements ->setPatterns([ 'slug' => '[a-z0-9-_]+', 'lang' => 'en|fr|es', ]) // Also allow from the request and response objects. They let you interact with groups of cookies using immutable patterns, which allow the immutability of the request and response to be preserved. Creating Cookies class0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 2.x
insensitive. Adding your own Validation Methods Sometimes checking data with regular expression patterns is not enough. For example, if you want to ensure that a promotional code can only be used 25 times clarified by specifying a matching regular expression in the third parameter of connect(). Note Patterns used for route elements must not contain any capturing groups. If they do, Router will not function parameters such as which routed parameters should be shifted into the passed arguments, supplying patterns for routing parameters and supplying the name of a custom routing class. Routes are a way of connecting0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
insensitive. Adding your own Validation Methods Sometimes checking data with regular expression patterns is not enough. For example, if you want to ensure that a promotional code can only be used 25 times clarified by specifying a matching regular expression in the third parameter of connect(). Note: Patterns used for route elements must not contain any capturing groups. If they do, Router will not function parameters such as which routed parameters should be shifted into the passed arguments, supplying patterns for routing parameters and supplying the name of a custom routing class. Routes are a way of connecting0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 4.x
make sure that the {controller} and {plugin} parameters are correctly lowercased and dashed. Note Patterns used for route elements must not contain any capturing groups. If they do, Router will not function route elements that should be converted to passed arguments ->setPass(['slug']) // Set the matching patterns for route elements ->setPatterns([ 'slug' => '[a-z0-9-_]+', 'lang' => 'en|fr|es', ]) // from the request and response objects. They let you interact with groups of cookies using immutable patterns, which allow the immutability of the request and response to be preserved. Creating Cookies class0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
make sure that the {controller} and {plugin} parameters are correctly lowercased and dashed. Note: Patterns used for route elements must not contain any capturing groups. If they do, Router will not function route elements that should be converted to passed arguments ->setPass(['slug']) // Set the matching patterns for route elements ->setPatterns([ 'slug' => '[a-z0-9-_]+', 'lang' => 'en|fr|es', ]) // Also allow from the request and response objects. They let you interact with groups of cookies using immutable patterns, which allow the immutability of the request and response to be preserved. Creating Cookies class0 码力 | 967 页 | 2.88 MB | 1 年前3
共 8 条
- 1













