 CakePHP Cookbook 2.x
$local = false) Returns the referring URL for the current request. Parameter $default can be used to supply a default URL to use if HTTP_REFERER cannot be read from headers. So, instead of doing this: class destination' => 'Old Towne Bakery'). If you want to use a different SQL operator between terms, supply them using the second parameter: /* Contents of $this->request->data array( 'Order' => array( php endforeach; ?> Caching Elements You can take advantage of CakePHP view caching if you supply a cache parameter. If set to true, it will cache the element in the ‘default’ Cache configuration0 码力 | 1096 页 | 958.62 KB | 1 年前3 CakePHP Cookbook 2.x
$local = false) Returns the referring URL for the current request. Parameter $default can be used to supply a default URL to use if HTTP_REFERER cannot be read from headers. So, instead of doing this: class destination' => 'Old Towne Bakery'). If you want to use a different SQL operator between terms, supply them using the second parameter: /* Contents of $this->request->data array( 'Order' => array( php endforeach; ?> Caching Elements You can take advantage of CakePHP view caching if you supply a cache parameter. If set to true, it will cache the element in the ‘default’ Cache configuration0 码力 | 1096 页 | 958.62 KB | 1 年前3
 CakePHP Cookbook 2.x
$local = false) Returns the referring URL for the current request. Parameter $default can be used to supply a default URL to use if HTTP_REFERER cannot be read from headers. So, instead of doing this: class destination' => 'Old Towne Bakery'). If you want to use a different SQL operator between terms, supply them using the second parameter: /* Contents of $this->request->data array( 'Order' => array( php endforeach; ?> Caching Elements You can take advantage of CakePHP view caching if you supply a cache parameter. If set to true, it will cache the element in the ‘default’ Cache configuration0 码力 | 820 页 | 2.52 MB | 1 年前3 CakePHP Cookbook 2.x
$local = false) Returns the referring URL for the current request. Parameter $default can be used to supply a default URL to use if HTTP_REFERER cannot be read from headers. So, instead of doing this: class destination' => 'Old Towne Bakery'). If you want to use a different SQL operator between terms, supply them using the second parameter: /* Contents of $this->request->data array( 'Order' => array( php endforeach; ?> Caching Elements You can take advantage of CakePHP view caching if you supply a cache parameter. If set to true, it will cache the element in the ‘default’ Cache configuration0 码力 | 820 页 | 2.52 MB | 1 年前3
 CakePHP Cookbook 3.x
classes cannot be found. Previously invalid tasks would be silently ignored. CakePHP internals now chain exceptions where possible, allowing root causes of errors to be exposed. MySQL connections now default have the same access as users who aren’t logged-in. This is not exactly what we want. We need to supply more rules to our isAuthorized() method. However instead of doing it in AppController, we’ll delegate => 'jimmy']); If your route template contains any route elements like :controller you’ll need to supply those as part of the options to Router::url(). Note Route names must be unique across your entire0 码力 | 1244 页 | 1.05 MB | 1 年前3 CakePHP Cookbook 3.x
classes cannot be found. Previously invalid tasks would be silently ignored. CakePHP internals now chain exceptions where possible, allowing root causes of errors to be exposed. MySQL connections now default have the same access as users who aren’t logged-in. This is not exactly what we want. We need to supply more rules to our isAuthorized() method. However instead of doing it in AppController, we’ll delegate => 'jimmy']); If your route template contains any route elements like :controller you’ll need to supply those as part of the options to Router::url(). Note Route names must be unique across your entire0 码力 | 1244 页 | 1.05 MB | 1 年前3
 CakePHP Cookbook 3.x
classes cannot be found. Previously invalid tasks would be silently ignored. • CakePHP internals now chain exceptions where possible, allowing root causes of errors to be exposed. • MySQL connections now have the same access as users who aren’t logged-in. This is not exactly what we want. We need to supply more rules to our isAuthorized() method. However instead of doing it in AppController, we’ll delegate => 'jimmy']); If your route template contains any route elements like :controller you’ll need to supply those as part of the options to Router::url(). Note: Route names must be unique across your entire0 码力 | 967 页 | 2.80 MB | 1 年前3 CakePHP Cookbook 3.x
classes cannot be found. Previously invalid tasks would be silently ignored. • CakePHP internals now chain exceptions where possible, allowing root causes of errors to be exposed. • MySQL connections now have the same access as users who aren’t logged-in. This is not exactly what we want. We need to supply more rules to our isAuthorized() method. However instead of doing it in AppController, we’ll delegate => 'jimmy']); If your route template contains any route elements like :controller you’ll need to supply those as part of the options to Router::url(). Note: Route names must be unique across your entire0 码力 | 967 页 | 2.80 MB | 1 年前3
 CakePHP Cookbook Documentation 5.x=> 'jimmy']); If your route template contains any route elements like {controller} you’ll need to supply those as part of the options to Router::url(). Note Route names must be unique across your entire 'Admin', 'controller' => 'TodoItems', 'action' => 'create'] ); When using nesting, you need to chain them together: echo $this->Html->link( 'New todo', ['prefix' => 'Admin/MyPrefix', 'controller' pattern for resource IDs only matches integers or UUIDs. If your IDs are different you will have to supply a regular expression pattern via the id option, for example, $builder->resources('Recipes', ['id'0 码力 | 1080 页 | 939.39 KB | 1 年前3 CakePHP Cookbook Documentation 5.x=> 'jimmy']); If your route template contains any route elements like {controller} you’ll need to supply those as part of the options to Router::url(). Note Route names must be unique across your entire 'Admin', 'controller' => 'TodoItems', 'action' => 'create'] ); When using nesting, you need to chain them together: echo $this->Html->link( 'New todo', ['prefix' => 'Admin/MyPrefix', 'controller' pattern for resource IDs only matches integers or UUIDs. If your IDs are different you will have to supply a regular expression pattern via the id option, for example, $builder->resources('Recipes', ['id'0 码力 | 1080 页 | 939.39 KB | 1 年前3
 CakePHP Cookbook Documentation 5.x=> 'jimmy']); If your route template contains any route elements like {controller} you’ll need to supply those as part of the options to Router::url(). Note: Route names must be unique across your entire => 'Admin', 'controller' => 'TodoItems', 'action' => 'create'] ); When using nesting, you need to chain them together: echo $this->Html->link( 'New todo', ['prefix' => 'Admin/MyPrefix', 'controller' => pattern for resource IDs only matches integers or UUIDs. If your IDs are different you will have to supply a regular expression pattern via the id option, for example, $builder->resources('Recipes', ['id'0 码力 | 848 页 | 2.53 MB | 1 年前3 CakePHP Cookbook Documentation 5.x=> 'jimmy']); If your route template contains any route elements like {controller} you’ll need to supply those as part of the options to Router::url(). Note: Route names must be unique across your entire => 'Admin', 'controller' => 'TodoItems', 'action' => 'create'] ); When using nesting, you need to chain them together: echo $this->Html->link( 'New todo', ['prefix' => 'Admin/MyPrefix', 'controller' => pattern for resource IDs only matches integers or UUIDs. If your IDs are different you will have to supply a regular expression pattern via the id option, for example, $builder->resources('Recipes', ['id'0 码力 | 848 页 | 2.53 MB | 1 年前3
 CakePHP Cookbook 4.x
=> 'jimmy']); If your route template contains any route elements like {controller} you’ll need to supply those as part of the options to Router::url(). Note Route names must be unique across your entire 'Admin', 'controller' => 'TodoItems', 'action' => 'create'] ); When using nesting, you need to chain them together: echo $this->Html->link( 'New todo', ['prefix' => 'Admin/MyPrefix', 'controller' pattern for resource IDs only matches integers or UUIDs. If your IDs are different you will have to supply a regular expression pattern via the id option, for example, $builder->resources('Recipes', ['id'0 码力 | 1249 页 | 1.04 MB | 1 年前3 CakePHP Cookbook 4.x
=> 'jimmy']); If your route template contains any route elements like {controller} you’ll need to supply those as part of the options to Router::url(). Note Route names must be unique across your entire 'Admin', 'controller' => 'TodoItems', 'action' => 'create'] ); When using nesting, you need to chain them together: echo $this->Html->link( 'New todo', ['prefix' => 'Admin/MyPrefix', 'controller' pattern for resource IDs only matches integers or UUIDs. If your IDs are different you will have to supply a regular expression pattern via the id option, for example, $builder->resources('Recipes', ['id'0 码力 | 1249 页 | 1.04 MB | 1 年前3
 CakePHP Cookbook 4.x
=> 'jimmy']); If your route template contains any route elements like {controller} you’ll need to supply those as part of the options to Router::url(). Note: Route names must be unique across your entire => 'Admin', 'controller' => 'TodoItems', 'action' => 'create'] ); When using nesting, you need to chain them together: echo $this->Html->link( 'New todo', ['prefix' => 'Admin/MyPrefix', 'controller' => pattern for resource IDs only matches integers or UUIDs. If your IDs are different you will have to supply a regular expression pattern via the id option, for example, $builder->resources('Recipes', ['id'0 码力 | 967 页 | 2.88 MB | 1 年前3 CakePHP Cookbook 4.x
=> 'jimmy']); If your route template contains any route elements like {controller} you’ll need to supply those as part of the options to Router::url(). Note: Route names must be unique across your entire => 'Admin', 'controller' => 'TodoItems', 'action' => 'create'] ); When using nesting, you need to chain them together: echo $this->Html->link( 'New todo', ['prefix' => 'Admin/MyPrefix', 'controller' => pattern for resource IDs only matches integers or UUIDs. If your IDs are different you will have to supply a regular expression pattern via the id option, for example, $builder->resources('Recipes', ['id'0 码力 | 967 页 | 2.88 MB | 1 年前3
 Laravel 5.0 Documentation
often will want to flash input in association with a redirect to the previous page, you may easily chain input flashing onto a redirect. return redirect('form')->withInput(); return redirect('form')- convenience, you may create a RedirectResponse instance and flash data to the session in a single method chain: return redirect('user/login')->with('message', 'Login Failed'); You may wish to redirect the user ->reject(function($name) { return is_null($value); }); As you can see, the Collection class allows you to chain its methods to perform fluent mapping and reducing of the underlying array. In general, every Collection0 码力 | 242 页 | 1.44 MB | 1 年前3 Laravel 5.0 Documentation
often will want to flash input in association with a redirect to the previous page, you may easily chain input flashing onto a redirect. return redirect('form')->withInput(); return redirect('form')- convenience, you may create a RedirectResponse instance and flash data to the session in a single method chain: return redirect('user/login')->with('message', 'Login Failed'); You may wish to redirect the user ->reject(function($name) { return is_null($value); }); As you can see, the Collection class allows you to chain its methods to perform fluent mapping and reducing of the underlying array. In general, every Collection0 码力 | 242 页 | 1.44 MB | 1 年前3
 Guzzle PHP v5 Documentationimplements the Promises/A+ spec, provided by the Guzzle promises library. This means that you can chain then() calls off of the promise. These then calls are either fulfilled with a successful Psr\Http echo $response->getStatusCode(); // 200 echo $response->getProtocolVersion(); // 1.1 // You can supply any number of optional arguments. $status = 200; $headers = ['X-Foo' => 'Bar']; $body = 'hello!'; asynchronous request. The client will return a GuzzleHttp\Promise\PromiseInterface object. You can chain then functions off of the promise. $promise = $client->requestAsync('GET', 'http://httpbin.org/get');0 码力 | 49 页 | 231.08 KB | 11 月前3 Guzzle PHP v5 Documentationimplements the Promises/A+ spec, provided by the Guzzle promises library. This means that you can chain then() calls off of the promise. These then calls are either fulfilled with a successful Psr\Http echo $response->getStatusCode(); // 200 echo $response->getProtocolVersion(); // 1.1 // You can supply any number of optional arguments. $status = 200; $headers = ['X-Foo' => 'Bar']; $body = 'hello!'; asynchronous request. The client will return a GuzzleHttp\Promise\PromiseInterface object. You can chain then functions off of the promise. $promise = $client->requestAsync('GET', 'http://httpbin.org/get');0 码力 | 49 页 | 231.08 KB | 11 月前3
共 55 条
- 1
- 2
- 3
- 4
- 5
- 6














