 Falcon v1.0.0 Documentationfirst-class WSGI apps, so you can use the standard pattern outlined in PEP-3333. In your main “app” file, you would simply wrap your api instance with a middleware app. For example: import my_restful_service code files. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache cd into it: $ mkdir look $ cd look Next, let’s create a new file that will be the entry point into your app: $ touch app.py Open that file in your favorite text editor and add the following lines: import0 码力 | 249 页 | 406.22 KB | 1 年前3 Falcon v1.0.0 Documentationfirst-class WSGI apps, so you can use the standard pattern outlined in PEP-3333. In your main “app” file, you would simply wrap your api instance with a middleware app. For example: import my_restful_service code files. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache cd into it: $ mkdir look $ cd look Next, let’s create a new file that will be the entry point into your app: $ touch app.py Open that file in your favorite text editor and add the following lines: import0 码力 | 249 页 | 406.22 KB | 1 年前3
 CakePHP Cookbook 2.x
Creating Tests for Plugins Integration with Jenkins REST The Simple Setup Accepting Input in Other Formats Modifying the default REST routes Custom REST Routing Dispatcher Filters Configuring Filters Filter find out what user your webserver runs as. You can run inside any PHP file your webserver can execute. You should see a username printed. Change the ownership of the app/tmp CakePHP’s database configuration file is found in /app/Config/database.php.default. Make a copy of this file in the same directory, but name it database.php. The config file should be pretty straightforward:0 码力 | 1096 页 | 958.62 KB | 1 年前3 CakePHP Cookbook 2.x
Creating Tests for Plugins Integration with Jenkins REST The Simple Setup Accepting Input in Other Formats Modifying the default REST routes Custom REST Routing Dispatcher Filters Configuring Filters Filter find out what user your webserver runs as. You can run inside any PHP file your webserver can execute. You should see a username printed. Change the ownership of the app/tmp CakePHP’s database configuration file is found in /app/Config/database.php.default. Make a copy of this file in the same directory, but name it database.php. The config file should be pretty straightforward:0 码力 | 1096 页 | 958.62 KB | 1 年前3
 Falcon v1.0.0 Documentation© Copyright 2016 Falcon Contributors | Logo based on a File:Brown-Falcon,-Vic,-3.1.2008.jpg>photograph by John O'Neill. Created using Sphinx 1.4.8. index © Copyright 2016 Falcon Contributors | Logo based on a File:Brown-Falcon,-Vic,-3.1.2008.jpg>photograph by John O'Neill. Created using Sphinx 1.4.8. index © Copyright 2016 Falcon Contributors | Logo based on a File:Brown-Falcon,-Vic,-3.1.2008.jpg>photograph by John O'Neill. Created using Sphinx 1.4.8. index0 码力 | 312 页 | 368.58 KB | 1 年前3 Falcon v1.0.0 Documentation© Copyright 2016 Falcon Contributors | Logo based on a File:Brown-Falcon,-Vic,-3.1.2008.jpg>photograph by John O'Neill. Created using Sphinx 1.4.8. index © Copyright 2016 Falcon Contributors | Logo based on a File:Brown-Falcon,-Vic,-3.1.2008.jpg>photograph by John O'Neill. Created using Sphinx 1.4.8. index © Copyright 2016 Falcon Contributors | Logo based on a File:Brown-Falcon,-Vic,-3.1.2008.jpg>photograph by John O'Neill. Created using Sphinx 1.4.8. index0 码力 | 312 页 | 368.58 KB | 1 年前3
 CakePHP Cookbook 2.x
find out what user your webserver runs as. You can run inside any PHP file your webserver can execute. You should see a username printed. Change the ownership of the app/tmp CakePHP’s database configuration file is found in /app/Config/database.php.default. Make a copy of this file in the same directory, but name it database.php. The config file should be pretty straightforward: you’ve saved your new database.php file, you should be able to open your browser and see the CakePHP welcome page. It should also tell you that your database connection file was found, and that CakePHP can0 码力 | 820 页 | 2.52 MB | 1 年前3 CakePHP Cookbook 2.x
find out what user your webserver runs as. You can run inside any PHP file your webserver can execute. You should see a username printed. Change the ownership of the app/tmp CakePHP’s database configuration file is found in /app/Config/database.php.default. Make a copy of this file in the same directory, but name it database.php. The config file should be pretty straightforward: you’ve saved your new database.php file, you should be able to open your browser and see the CakePHP welcome page. It should also tell you that your database connection file was found, and that CakePHP can0 码力 | 820 页 | 2.52 MB | 1 年前3
 CakePHP Cookbook 4.x
Plugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Route Scoped Middleware Grouping Middleware RESTful Routing Creating Nested Resource Response Objects Request ServerRequest Request Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Manipulating URIs Response Response Dealing with Content Types Sending Files Sending a String as File Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning0 码力 | 1249 页 | 1.04 MB | 1 年前3 CakePHP Cookbook 4.x
Plugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Route Scoped Middleware Grouping Middleware RESTful Routing Creating Nested Resource Response Objects Request ServerRequest Request Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Manipulating URIs Response Response Dealing with Content Types Sending Files Sending a String as File Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning0 码力 | 1249 页 | 1.04 MB | 1 年前3
 CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663 Getting an Excerpt From a File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663 Editor Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 751 Plugin Map File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753 Accepting Input in Other Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755 RESTful Routing0 码力 | 967 页 | 2.88 MB | 1 年前3 CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663 Getting an Excerpt From a File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663 Editor Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 751 Plugin Map File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753 Accepting Input in Other Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755 RESTful Routing0 码力 | 967 页 | 2.88 MB | 1 年前3
 CakePHP Cookbook 3.x
Plugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Connecting Scoped Middleware Grouping Middleware RESTful Routing Creating Nested Resource Request & Response Objects Request Request Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Checking Accept Headers Cookies Response Dealing with Content Types Sending Files Sending a String as File Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning0 码力 | 1244 页 | 1.05 MB | 1 年前3 CakePHP Cookbook 3.x
Plugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Connecting Scoped Middleware Grouping Middleware RESTful Routing Creating Nested Resource Request & Response Objects Request Request Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Checking Accept Headers Cookies Response Dealing with Content Types Sending Files Sending a String as File Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning0 码力 | 1244 页 | 1.05 MB | 1 年前3
 CakePHP Cookbook Documentation 5.xPlugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Route Scoped Middleware Grouping Middleware RESTful Routing Creating Nested Resource Response Objects Request ServerRequest Request Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Manipulating URIs Response Response Dealing with Content Types Sending Files Sending a String as File Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning0 码力 | 1080 页 | 939.39 KB | 1 年前3 CakePHP Cookbook Documentation 5.xPlugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Route Scoped Middleware Grouping Middleware RESTful Routing Creating Nested Resource Response Objects Request ServerRequest Request Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Manipulating URIs Response Response Dealing with Content Types Sending Files Sending a String as File Setting Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning0 码力 | 1080 页 | 939.39 KB | 1 年前3
 CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 Getting an Excerpt From a File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 Editor Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649 Plugin Map File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 码力 | 848 页 | 2.53 MB | 1 年前3 CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 Getting an Excerpt From a File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 Editor Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649 Plugin Map File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 码力 | 848 页 | 2.53 MB | 1 年前3
 CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693 Getting an Excerpt From a File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693 Using Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 770 Plugin Map File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 773 Accepting Input in Other Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 776 RESTful Routing0 码力 | 967 页 | 2.80 MB | 1 年前3 CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693 Getting an Excerpt From a File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693 Using Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 770 Plugin Map File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 773 Accepting Input in Other Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 776 RESTful Routing0 码力 | 967 页 | 2.80 MB | 1 年前3
共 79 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8














