CakePHP Cookbook 3.x
useful when you have resources like images, CSV files or PDFs you need to stream to the client: // Streaming from a callback use Cake\Http\CallbackStream; // Create an image. $img = imagecreate(100, 100); $response = $response->withBody($stream); // Prior to 3.4.0 you can use the following to create streaming responses. $file = fopen('/some/file.png', 'r'); $this->response->body(function () use ($file) specific output required for the request. Often this is in the form of HTML, XML, or JSON, but streaming files and creating PDFs that users can download are also responsibilities of the View Layer. CakePHP0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
useful when you have resources like images, CSV files or PDFs you need to stream to the client: // Streaming from a callback use Cake\Http\CallbackStream; // Create an image. $img = imagecreate(100, 100); $response = $response->withBody($stream); // Prior to 3.4.0 you can use the following to create streaming responses. $file = fopen('/some/file.png', 'r'); $this->response->body(function () use ($file) { specific output required for the request. Often this is in the form of HTML, XML, or JSON, but streaming files and creating PDFs that users can download are also responsibilities of the View Layer. CakePHP0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
useful when you have resources like images, CSV files or PDFs you need to stream to the client: // Streaming from a callback use Cake\Http\CallbackStream; // Create an image. $img = imagecreate(100, 100); specific output required for the request. Often this is in the form of HTML, XML, or JSON, but streaming files and creating PDFs that users can download are also responsibilities of the View Layer. CakePHP be created. This ResultSet will be written to the cache and returned. Note You cannot cache a streaming query result. Loading Associations The builder can help you retrieve data from multiple tables0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
useful when you have resources like images, CSV files or PDFs you need to stream to the client: // Streaming from a callback use Cake\Http\CallbackStream; // Create an image. $img = imagecreate(100, 100); specific output required for the request. Often this is in the form of HTML, XML, or JSON, but streaming files and creating PDFs that users can download are also responsibilities of the View Layer. CakePHP be created. This ResultSet will be written to the cache and returned. Note: You cannot cache a streaming query result. Loading Associations The builder can help you retrieve data from multiple tables0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook Documentation 5.xuseful when you have resources like images, CSV files or PDFs you need to stream to the client: // Streaming from a callback use Cake\Http\CallbackStream; // Create an image. $img = imagecreate(100, 100); specific output required for the request. Often this is in the form of HTML, XML, or JSON, but streaming files and creating PDFs that users can download are also responsibilities of the View Layer. CakePHP be created. This ResultSet will be written to the cache and returned. Note You cannot cache a streaming query result. Loading Associations The builder can help you retrieve data from multiple tables0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xuseful when you have resources like images, CSV files or PDFs you need to stream to the client: // Streaming from a callback use Cake\Http\CallbackStream; // Create an image. $img = imagecreate(100, 100); specific output required for the request. Often this is in the form of HTML, XML, or JSON, but streaming files and creating PDFs that users can download are also responsibilities of the View Layer. CakePHP be created. This ResultSet will be written to the cache and returned. Note: You cannot cache a streaming query result. Loading Associations The builder can help you retrieve data from multiple tables0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 2.x
specific output required for the request. Often this is in the form of HTML, XML, or JSON, but streaming files and creating PDFs that users can download are also responsibilities of the View Layer. CakePHP retrieved from a relational database such as MySQL, PostgreSQL or Microsoft SQL Server. CakePHP is distributed with several database-specific datasources (see the class files in lib/Cake/Model/Datasource/Database) [https://www.php.net/memcache] extension. Memcache provides a very fast cache system that can be distributed across many servers, and provides atomic operations. MemcachedEngine Uses the Memcached [https://www0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
specific output required for the request. Often this is in the form of HTML, XML, or JSON, but streaming files and creating PDFs that users can download are also responsibilities of the View Layer. CakePHP trieved from a relational database such as MySQL, PostgreSQL or Microsoft SQL Server. CakePHP is distributed with several database-specific datasources (see the class files in lib/Cake/Model/Datasource/Database) MemcacheEngine Uses the Memcache74 extension. Memcache provides a very fast cache system that can be distributed across many servers, and provides atomic operations. • MemcachedEngine Uses the Memcached75 extension0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













