Guzzle PHP 5.3 DocumentationRequestException has a response using the hasResponse() method. If the exception has a response, then you can access the associated GuzzleHttp\Message\ResponseInterface using the getResponse() method of the exception occurs during a trans- fer. With this event, you have access to the request that was sent, the response that was received (if one was received), access to transfer statistics, and the ability to intercept /get HTTP/1.1 Host: httpbin.org User-Agent: Guzzle/4.0 curl/7.21.4 PHP/5.5.7 < HTTP/1.1 200 OK < Access-Control-Allow-Origin: * < Content-Type: application/json < Date: Sun, 16 Feb 2014 06:50:09 GMT <0 码力 | 63 页 | 275.75 KB | 11 月前3
Guzzle PHP 5.3 DocumentationRequestException has a response using the hasResponse() method. If the exception has a response, then you can access the associated GuzzleHttp\Message\ResponseInterface using the getResponse() method of the exception occurs during a transfer. With this event, you have access to the request that was sent, the response that was received (if one was received), access to transfer statistics, and the ability to intercept /get HTTP/1.1 Host: httpbin.org User-Agent: Guzzle/4.0 curl/7.21.4 PHP/5.5.7 < HTTP/1.1 200 OK < Access-Control-Allow-Origin: * < Content-Type: application/json < Date: Sun, 16 Feb 2014 06:50:09 GMT <0 码力 | 72 页 | 312.62 KB | 11 月前3
CakePHP Cookbook Documentation 5.xSetup Indentation Line Length Control Structures Comparison Function Calls Method Definition Bail Early Method Chaining Commenting Code Including Files PHP Tags Naming Convention Careful when using empty()/isset() Creating Your Own View Classes More About Views View Cells Themes JSON and XML views Helpers Database Access & ORM Quick Example More Information Database Basics Query Builder Table Objects Entities Retrieving lowercase and dashed using the DashedRoute class, therefore /menu-links/view-all is the correct form to access the MenuLinksController::viewAll() action. When you create links using this->Html->link(), you can0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 3.x
Setup Indentation Line Length Control Structures Comparison Function Calls Method Definition Bail Early Method Chaining Commenting Code Including Files PHP Tags Naming Convention Careful when using empty()/isset() Creating Your Own View Classes More About Views View Cells Themes JSON and XML views Helpers Database Access & ORM Quick Example More Information Database Basics Query Builder Table Objects Entities Retrieving dashed using the DashedRoute class, therefore /article-categories/view-all is the correct form to access the ArticleCategoriesController::viewAll() action. When you create links using this->Html->link()0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
Setup Indentation Line Length Control Structures Comparison Function Calls Method Definition Bail Early Method Chaining Commenting Code Including Files PHP Tags Naming Convention Careful when using empty()/isset() Creating Your Own View Classes More About Views View Cells Themes JSON and XML views Helpers Database Access & ORM Quick Example More Information Database Basics Query Builder Table Objects Entities Retrieving lowercase and dashed using the DashedRoute class, therefore /menu-links/view-all is the correct form to access the MenuLinksController::viewAll() action. When you create links using this->Html->link(), you can0 码力 | 1249 页 | 1.04 MB | 1 年前3
The PHP Handbook
Server, which is responsible for responding to HTTP requests, the ones made by the browser. So you access a URL with your browser, Chrome or Firefox or Safari, and the HTTP server responds with some HTML We have the Apache HTTP server listening on port 8888 on localhost, your computer. When we access http://localhost:8888 with the browser we’re making an HTTP request, asking for the content of the of any type: $list = [1, 'test']; Even other arrays: $list = [1, [2, 'test']]; 23 You can access the element in an array using this notation: $list = ['a', 'b']; $list[0]; //'a' --the index starts0 码力 | 97 页 | 8.78 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351 12 Database Access & ORM 463 Quick Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . dashed using the DashedRoute class, therefore /article-categories/view-all is the correct form to access the ArticleCategoriesController::viewAll() action. When you create links using this->Html->link() and templates. CakePHP’s models are composed of Table and Entity objects. Table objects provide access to the collection of entities stored in a specific table. They are stored in src/Model/Table. The0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 12 Database Access & ORM 321 Quick Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . case and dashed using the DashedRoute class, therefore /menu-links/view-all is the correct form to access the MenuLinksController::viewAll() action. When you create links using this->Html->link(), you can ArticlesController, users can now access the logic there by requesting www.example.com/articles/index. Similarly, if we were to define a function called foobar(), users would be able to access that at www.example.com/articles/foobar0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 12 Database Access & ORM 419 Quick Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . case and dashed using the DashedRoute class, therefore /menu-links/view-all is the correct form to access the MenuLinksController::viewAll() action. When you create links using this->Html->link(), you can and templates. CakePHP’s models are composed of Table and Entity objects. Table objects provide access to the collection of entities stored in a specific table. They are stored in src/Model/Table. The0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
(who’s allowed to access what) Simple Acl controlled Application Preparing our Application Preparing to Add Auth Initialize the Db Acl tables Acts As a Requester Creating ACOs (Access Control Objects) PostsController, users can access the logic there by requesting www.example.com/posts/index. Similarly, if we were to define a function called foobar(), users would be able to access that at www.example.com/posts/foobar $this->request->data = $post; } } This action first ensures that the user has tried to access an existing record. If they haven’t passed in an $id parameter, or the post does not exist, we throw0 码力 | 1096 页 | 958.62 KB | 1 年前3
共 79 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













