CakePHP Cookbook 2.x
Publish Your Plugin Shells, Tasks & Console Tools The CakePHP console Adding cake to your system path Creating a shell Using Models in your shells Shell tasks Loading tasks on the fly with TaskCollection your DocumentRoot. Once finished, your directory setup should look something like the following: /path_to_document_root /app /lib /plugins /vendors .htaccess index.php README Now webroot .htaccess file would look like:RewriteEngine On RewriteBase /path/to/cake/app RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule 0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
your DocumentRoot. Once finished, your directory setup should look something like the following: /path_to_document_root /app /lib /plugins /vendors .htaccess index.php README Now might be a good time your webroot .htaccess file would look like:RewriteEngine On RewriteBase /path/to/cake/app RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^( your webroot .htaccess to something like: RewriteEngine On RewriteBase /path/to/cake/app RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} 0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 4.x
Route Elements Reserved Route Elements Configuring Route Options Passing Parameters to Action Using Path Routing Using Named Routes Prefix Routing Creating Links to Prefix Routes Plugin Routing Creating Resource Routing Custom Route Classes for Resource Routes URL Inflection for Resource Routes Changing the Path Element Passed Arguments Generating URLs RouterBuilder::url RouterBuilder::reverse Using Router::url() Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request Conditions Session Data Host and Domain Name Reading the HTTP Method0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 858 vi 33 Hash 861 Hash Path Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . for Controller Names As you’ve just seen, single word controllers map to a simple lower case URL path. For example, UsersController (which would be defined in the file name UsersController.php) is accessed checking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note: For Windows, the command needs to be bin\cake server (note the0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 868 33 Hash 871 Hash Path Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . for Controller Names As you’ve just seen, single word controllers map to a simple lower case URL path. For example, UsersController (which would be defined in the file name UsersController.php) is accessed checking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note: For Windows, the command needs to be bin\cake server (note the0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 3.x
Resource Routing Custom Route Classes for Resource Routes URL Inflection for Resource Routes Changing the Path Element Passed Arguments Generating URLs Redirect Routing Entity Routing Custom Route Classes Default Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request Conditions Session Data Host and Domain Name Reading the HTTP Method Collections Rewindable Cloning Collections Folder & File Basic Usage Folder API File API Hash Hash Path Syntax Expression Types Attribute Matching Types Http Client Doing Requests Creating Multipart0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook Documentation 5.xRoute Elements Reserved Route Elements Configuring Route Options Passing Parameters to Action Using Path Routing Using Named Routes Prefix Routing Creating Links to Prefix Routes Plugin Routing Creating Resource Routing Custom Route Classes for Resource Routes URL Inflection for Resource Routes Changing the Path Element Passed Arguments Generating URLs RouterBuilder::url RouterBuilder::reverse Using Router::url() Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request Conditions Session Data Host and Domain Name Reading the HTTP Method0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 741 33 Hash 749 Hash Path Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . for Controller Names As you’ve just seen, single word controllers map to a simple lower case URL path. For example, UsersController (which would be defined in the file name UsersController.php) is accessed checking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note: For Windows, the command needs to be bin\cake server (note the0 码力 | 848 页 | 2.53 MB | 1 年前3
共 8 条
- 1













