CakePHP Cookbook Documentation 5.xDisabling Callbacks Text Text Convert Strings into ASCII Text::transliterate Creating URL Safe Strings Text::slug Generating UUIDs Text::uuid Simple String Parsing Text::tokenize Text::parseFileSize() Formatting Strings Text::insert Text::cleanInsert Wrapping Text Text::wrap Text::wrapBlock Highlighting Substrings Text::highlight() Removing Links Text::stripLinks() Truncating Text Text::truncate() Text::truncate() Truncating the Tail of a String Text::tail() Extracting an Excerpt Text::excerpt() Converting an Array to Sentence Form Text::toList() Date & Time DateTime Creating DateTime Instances Manipulation0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 790 38 Text 791 Convert Strings into ASCII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 793 Wrapping Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795 Truncating Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
Disabling Callbacks Text Text Convert Strings into ASCII Text::transliterate Creating URL Safe Strings Text::slug Generating UUIDs Text::uuid Simple String Parsing Text::tokenize Text::parseFileSize() Formatting Strings Text::insert Text::cleanInsert Wrapping Text Text::wrap Text::wrapBlock Highlighting Substrings Text::highlight() Removing Links Text::stripLinks() Truncating Text Text::truncate() Text::truncate() Truncating the Tail of a String Text::tail() Extracting an Excerpt Text::excerpt() Converting an Array to Sentence Form Text::toList() Date & Time FrozenTime Creating FrozenTime Instances Manipulation0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
Callbacks Text Convert Strings into ASCII Creating URL Safe Strings Generating UUIDs Simple String Parsing Formatting Strings Wrapping Text Highlighting Substrings Removing Links Truncating Text Truncating View Cells to let you re-use your presentation logic. The View layer is not only limited to HTML or text representation of the data. It can be used to deliver common data formats like JSON, XML, and through you can also use UUID columns. CakePHP will create UUID values automatically using (Cake\Utility\Text::uuid()) whenever you save new records using the Table::save() method. Model Conventions Table class0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902 38 Text 903 Convert Strings into ASCII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 905 Wrapping Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907 Truncating Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.88 MB | 1 年前3
Laravel 6.0 中文文档还提供了一个全局的辅助函数 old(),如果你是在 Blade 模 板中显示上次输入数据,使用辅助函数 old() 更方便,如果给定参 数没有对应输入,返回 null: Cookie 从请求中取出 Cookie 为了安全起见,Laravel 框架创建的所有 Cookie Route::get('cookie/response', function () { return response('Hello World', 200) ->header('Content-Type', 'text/plain'); }); 添加响应头 大部分响应方法都可以以方法链的形式调用,从而可以流式构建响应 (流接口模式)。例如,在发送响应给用户前可以使用 header 方法 来添加一系列响应头: Cookie::queue('author', '学院君', 1); return response('Hello Laravel', 200) ->header('Content-Type', 'text/plain'); }); 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 274 我们在浏览器中访问 http://blog0 码力 | 1442 页 | 14.66 MB | 1 年前3
Falcon v3.0.0 DocumentationHTTP_200 # This is the default status resp.content_type = falcon.MEDIA_TEXT # Default is JSON, so override resp.text = ('\nTwo things awe me most, the starry sky ' 'above HTTP_200 # This is the default status resp.content_type = falcon.MEDIA_TEXT # Default is JSON, so override resp.text = ('\nTwo things awe me most, the starry sky ' 'above + ' ' + result.reason resp.content_type = result.headers['content-type'] resp.text = result.text class AuthMiddleware: def process_request(self, req, resp): token = req.get_he0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 DocumentationHTTP_200 # This is the default status resp.content_type = falcon.MEDIA_TEXT # Default is JSON, so override resp.text = ('\nTwo things awe me most, the starry sky ' 'above HTTP_200 # This is the default status resp.content_type = falcon.MEDIA_TEXT # Default is JSON, so override resp.text = ('\nTwo things awe me most, the starry sky ' 'above + ' ' + result.reason resp.content_type = result.headers['content-type'] resp.text = result.text class AuthMiddleware: def process_request(self, req, resp): token = req.get_he0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 Documentation# This is the default status resp.content_type = falcon.MEDIA_TEXT # Default is JSON, so override resp.text = ('\nTwo things awe me most, the starry sky ' 'above # This is the default status resp.content_type = falcon.MEDIA_TEXT # Default is JSON, so override resp.text = ('\nTwo things awe me most, the starry sky ' 'above ' + result.reason resp.content_type = result.headers['content-type'] resp.text = result.text class AuthMiddleware: def process_request(self, req, resp): token = req.get_he0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v3.0.0-b1 DocumentationHTTP_200 # This is the default status resp.content_type = falcon.MEDIA_TEXT # Default is JSON, so override resp.text = ('\nTwo things awe me most, the starry sky ' 'above HTTP_200 # This is the default status resp.content_type = falcon.MEDIA_TEXT # Default is JSON, so override resp.text = ('\nTwo things awe me most, the starry sky ' 'above + ' ' + result.reason resp.content_type = result.headers['content-type'] resp.text = result.text class AuthMiddleware: def process_request(self, req, resp): token = req.get_he0 码力 | 1028 页 | 725.86 KB | 1 年前3
共 75 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













