CakePHP Cookbook 2.x
Dispatcher Filters Configuring Filters Filter Classes Inline Filters Deployment Check your security Set document root Update core.php Improve your application’s performance Tutorials & Examples Blog Tutorial and uncaught exceptions that cache data cannot be written. Creating the Blog Database Next, let’s set up the underlying database for our blog. If you haven’t already done so, create an empty database for AppController { public $helpers = array('Html', 'Form'); public function index() { $this->set('posts', $this->Post->find('all')); } } By defining function index() in our PostsController, users0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649 Set document root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting Started CakePHP Cookbook Documentation, Release 2.x Creating the Blog Database Next, let’s set up the underlying database for our blog. If you haven’t already done so, create an empty database for further information. 1. Make sure that an .htaccess override is allowed and that AllowOverride is set to All for the correct DocumentRoot. You should see something similar to: 4 Chapter 1. Getting Started0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook Documentation 5.xTypes Sending Files Sending a String as File Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning HTTP Cache Setting Cookies Setting Cross Origin Request Using Logging to Debug Debug Kit Deployment Moving files Adjusting Configuration Check Your Security Set Document Root Improve Your Application’s Performance Deploying an update Mailer Mailer Basic Usage the view could use model data to render an HTML view template containing it, or a XML formatted result for others to consume: // In a view template file, we'll render an 'element' for each user.0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xSecurity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562 Set Document Root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . the view could use model data to render an HTML view template containing it, or a XML formatted result for others to consume: // In a view template file, we'll render an 'element' for each user. Flash->error(__('There were some problems.')); } } $this->set('user', $user); } You may notice that we never explicitly rendered a view. CakePHP’s conventions will0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
Types Sending Files Sending a String as File Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning HTTP Cache Setting Cookies Setting Cross Origin Request Using Logging to Debug Debug Kit Deployment Moving files Adjusting Configuration Check Your Security Set Document Root Improve Your Application’s Performance Deploying an update Mailer Mailer Basic Usage the view could use model data to render an HTML view template containing it, or a XML formatted result for others to consume: // In a view template file, we'll render an 'element' for each user.0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668 Set Document Root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . the view could use model data to render an HTML view template containing it, or a XML formatted result for others to consume: // In a view template file, we'll render an 'element' for each user. Flash->error(__('There were some problems.')); } } $this->set('user', $user); } You may notice that we never explicitly rendered a view. CakePHP’s conventions will0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 3.x
Types Sending Files Sending a String as File Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning HTTP Cache Setting Cookies Setting Cross Origin Request Using Logging to Debug Debug Kit Deployment Moving files Adjust config/app.php Check Your Security Set Document Root Improve Your Application’s Performance Deploying an update Email Basic Usage Choosing the view could use model data to render an HTML view template containing it, or a XML formatted result for others to consume: // In a view template file, we'll render an 'element' for each user.0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 696 Set Document Root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . the view could use model data to render an HTML view template containing it, or a XML formatted result for others to consume: // In a view template file, we'll render an 'element' for each user. Flash->error(__('There were some problems.')); } } $this->set('user', $user); } You may notice that we never explicitly rendered a view. CakePHP’s conventions will0 码力 | 967 页 | 2.80 MB | 1 年前3共 8 条- 1













