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 blog posts. Here’s what you’ll need: 1. A running web server. We’re going to assume you’re using Apache, though the instructions for using other servers should be very similar. We might have to play a 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 table0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook Documentation 5.xChanges Installation using Oven Permissions Development Server Production Fire It Up URL Rewriting Apache nginx NGINX Unit IIS7 (Windows hosts) Lighttpd I Can’t Use URL Rewriting Configuration Configuring 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 Cookies0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Changes Installation using Oven Permissions Development Server Production Fire It Up URL Rewriting Apache nginx NGINX Unit IIS7 (Windows hosts) Lighttpd I Can’t Use URL Rewriting Configuration Configuring 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 Cookies0 码力 | 1249 页 | 1.04 MB | 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 3.x
Changes Installation using Oven Permissions Development Server Production Fire It Up URL Rewriting Apache nginx IIS7 (Windows hosts) I Can’t Use URL Rewriting Configuration Configuring your Application 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 Cookies0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 2.x
blog posts. Here’s what you’ll need: 1. A running web server. We’re going to assume you’re using Apache, though the instructions for using other servers should be very similar. We might have to play a sections below about URL rewriting for your webserver to get you up and running: URL Rewriting Apache and mod_rewrite (and .htaccess) While CakePHP is built to work with mod_rewrite out of the box–and httpd.conf.) These files can vary between different distributions and Apache versions. You may also take a look at https://wiki. apache.org/httpd/DistrosDefaultLayout for further information. 1. Make sure0 码力 | 820 页 | 2.52 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
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
共 8 条
- 1













