CakePHP Cookbook Documentation 5.xEnvironment Variables General Configuration Using a CDN Database Configuration Caching Configuration Error and Exception Handling Configuration Logging Configuration Email Configuration Session Configuration Cache Setting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable Responses Cookie Collections CookieCollection Creating Cookies Reading Cookies Controllers Controller The Testing Mailers Assertion methods Error & Exception Handling Configuration Deprecation Warnings Changing Exception Handling Listen to Events Custom Templates Custom Error Page Layout Custom Controller0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 3.x
Environment Variables General Configuration Using a CDN Database Configuration Caching Configuration Error and Exception Handling Configuration Logging Configuration Email Configuration Session Configuration Cache 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 Testing Email Assertion methods Error & Exception Handling Error & Exception Configuration Changing Exception Handling Customize Error Templates Customize the Error Page Layout Customize the ErrorController0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Common Mistakes with Immutable Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Cookie Collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575 19 Error & Exception Handling 579 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585 Customizing PHP Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589 20 Events0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
Environment Variables General Configuration Using a CDN Database Configuration Caching Configuration Error and Exception Handling Configuration Logging Configuration Email Configuration Session Configuration Cache Setting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable Responses Cookie Collections CookieCollection Creating Cookies Reading Cookies Controllers Controller The Assertion methods Error & Exception Handling Error & Exception Configuration Deprecation Warnings Changing Exception Handling Listen to Events Custom Error Templates Custom Error Page Layout Custom0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 Common Mistakes with Immutable Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 Cookie Collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709 19 Error & Exception Handling 711 Error & Exception Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 712 Customize Error Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7120 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 Common Mistakes with Immutable Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 Cookie Collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681 19 Error & Exception Handling 685 Error & Exception Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687 Custom Error Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
with Exception.renderer to handle application exceptions Error Handling Error configuration Creating your own error handler Changing fatal error behavior Debugging Basic Debugging Debugger Class Using URL. If a user requests /posts/view/3, then the value ‘3’ is passed as $id. We also do a bit of error checking to ensure that a user is actually accessing a record. If a user requests /posts/view, we return $this->redirect(array('action' => 'index')); } $this->Flash->error(__('Unable to add your post.')); } } } Note $this->request->is() takes a single argument0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605 Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . com/public/app/webroot/; index index.php; access_log /var/www/example.com/log/access.log; error_log /var/www/example.com/log/error.log; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { listen to php-fpm socket instead of TCP port 9000 on address 127.0.0.1. If you get 502 bad gateway error from above configuration, try replacing fastcgi_pass from TCP port to socket path (eg: fastcgi_pass0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













