CakePHP Cookbook 2.x
wish to cover here for simplicity’s sake. Use the rest of this manual as a guide for building more feature-rich applications. Now that you’ve created a basic CakePHP application, you’re ready for the real changes to the following files. /app/webroot/index.php /app/webroot/test.php (if you use the Testing feature.) There are three constants that you’ll need to edit: ROOT, APP_DIR, and CAKE_CORE_INCLUDE_PATH users related to categories will be shown by first name rather than just by ID in scaffolding. This feature makes scaffolding more readable in many instances: class User extends AppModel { public $displayField0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
wish to cover here for simplicity’s sake. Use the rest of this manual as a guide for building more feature-rich applications. Now that you’ve created a basic CakePHP application, you’re ready for the real the following files. • /app/webroot/index.php • /app/webroot/test.php (if you use the Testing feature.) There are three constants that you’ll need to edit: ROOT, APP_DIR, and CAKE_CORE_INCLUDE_PATH users related to categories will be shown by first name rather than just by ID in scaffolding. This feature makes scaffolding more readable in many instances: class User extends AppModel { public $displayField0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 4.x
FormProtectionComponent for form tampering protection and the HTTPS Enforcer Middleware for requireSecure feature. Filesystem This package is deprecated and will be removed in 5.0. It has a number of design problems Security Policy headers simpler. HttpsEnforcerMiddleware was added. This replaced the requireSecure feature of SecurityComponent. Cookies now support the SameSite attribute. I18n Date and FrozenDate now generates HTML5 validation messages for fields marked as “notEmpty” in an entity’s ORM table class. This feature can be toggled with the autoSetCustomValidity class configuration option. FormHelper now generates0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
FormProtectionComponent for form tampering protec- tion and the HTTPS Enforcer Middleware for requireSecure feature. 26 https://github.com/cakephp/app/blob/4.x/src/Application.php 27 https://github.com/cakephp/authentication Security Policy headers simpler. • HttpsEnforcerMiddleware was added. This replaced the requireSecure feature of SecurityComponent. • Cookies now support the SameSite attribute. I18n • Date and FrozenDate generates HTML5 validation messages for fields marked as “notEmpty” in an entity’s ORM table class. This feature can be toggled with the autoSetCustomValidity class configuration option. • FormHelper now generates0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook Documentation 5.xconditions: $array). New Features Improved type checking CakePHP 5 leverages the expanded type system feature available in PHP 8.1+. CakePHP also uses assert() to provide improved error messages and additional includes null values. Because this can be a tedious to enable feature, it was deferred to 5.0. We’d like any feedback you have on this feature as we’re considering making this the default behavior in the Testcase classes. data providers have to be static If your testcases leverage the data provider feature of PHPUnit then you have to adjust your data providers to be static: public function myProvider():0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xconditions: $array). New Features Improved type checking CakePHP 5 leverages the expanded type system feature available in PHP 8.1+. CakePHP also uses assert() to provide improved error messages and additional includes null values. Because this can be a tedious to enable feature, it was deferred to 5.0. We’d like any feedback you have on this feature as we’re considering making this the default behavior in the Documentation, Release 5.x data providers have to be static If your testcases leverage the data provider feature of PHPUnit then you have to adjust your data providers to be static: public function myProvider():0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 3.x
application/x-www-form-urlencoded is used instead. ORM You can now Lazily Eager Load Associations. This feature allows you to conditionally load additional associations into a result set, entity or collection with short_tags enabled. Support for the Asset.filter configuration and hooks were removed. This feature should be replaced with a plugin or dispatcher filter. Network Request CakeRequest has been renamed by PHP itself. The property Session::$requestCountdown has been removed. The session checkAgent feature has been removed. It caused a number of bugs when chrome frame, and flash player are involved. The0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
application/x-www-form-urlencoded is used instead. ORM You can now Lazily Eager Load Associations. This feature allows you to conditionally load additional associations into a result set, entity or collection with short_tags enabled. • Support for the Asset.filter configuration and hooks were removed. This feature should be replaced with a plugin or dispatcher filter. Network Request • CakeRequest has been PHP itself. • The property Session::$requestCountdown has been removed. • The session checkAgent feature has been removed. It caused a number of bugs when chrome frame, and flash player are involved. •0 码力 | 967 页 | 2.80 MB | 1 年前3
共 8 条
- 1













