CakePHP Cookbook 2.x
user directory that already uses mod_rewrite. If you are installing CakePHP into a user directory (http://example.com/~username/ cakephp/), or any other URL structure that already utilizes mod_rewrite, PHP running as a FastCGI instance. server { listen 80; server_name www.example.com; rewrite ^(.*) http://example.com$1 permanent; } server { listen 80; server_name example.com; # root directive should of /con- troller/action/param1/param2. At this point, you should be able to point your browser to http://www.example.com/posts/index. You should see your view, correctly formatted with the title and table0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 2.x
data Exceptions Exception configuration Exception classes Built-in Exceptions for CakePHP Using HTTP exceptions in your controllers Exception Renderer Creating your own application exceptions Extending form of /controller/action/param1/param2. At this point, you should be able to point your browser to http://www.example.com/posts/index. You should see your view, correctly formatted with the title and table use it. If necessary, include it in your AppController. Here’s what the add() action does: if the HTTP method of the request was POST, it tries to save the data using the Post model. If for some reason0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook Documentation 5.xDependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 703 Mocking HTTP Client Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 703 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 749 vi 34 Http Client 765 Doing Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . example, UsersController (which would be defined in the file name UsersController.php) is accessed from http://example.com/users. While you can route multiple word controllers in any way you like, the convention0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook Documentation 5.xPrefix Routes Plugin Routing Creating Links to Plugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Route Scoped Middleware Grouping Middleware Request Conditions Session Data Host and Domain Name Reading the HTTP Method Restricting Which HTTP method an Action Accepts Reading HTTP Headers Trusting Proxy Headers Checking Accept Headers Reading Cookies Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning HTTP Cache Setting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 3.x
Prefix Routes Plugin Routing Creating Links to Plugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Connecting Scoped Middleware Grouping Request Conditions Session Data Host and Domain Name Reading the HTTP Method Restricting Which HTTP method an Action Accepts Reading HTTP Headers Trusting Proxy Headers Checking Accept Headers Cookies Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning HTTP Cache Setting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 871 34 Http Client 887 Doing Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . example, UsersController (which would be defined in the file name UsersController.php) is accessed from http://example.com/users. While you can route multiple word controllers in any way you like, the convention found at src/Template/Articles/index.ctp Using these conventions, CakePHP knows that a request to http://example.com/articles maps to a call on the index() function of the ArticlesController, where the0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
Prefix Routes Plugin Routing Creating Links to Plugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Route Scoped Middleware Grouping Middleware Request Conditions Session Data Host and Domain Name Reading the HTTP Method Restricting Which HTTP method an Action Accepts Reading HTTP Headers Trusting Proxy Headers Checking Accept Headers Reading Cookies Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning HTTP Cache Setting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807 Mocking HTTP Client Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 861 34 Http Client 877 Doing Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . example, UsersController (which would be defined in the file name UsersController.php) is accessed from http://example.com/users. While you can route multiple word controllers in any way you like, the convention0 码力 | 967 页 | 2.88 MB | 1 年前3
共 8 条
- 1













