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
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908 38 Text 909 Convert Strings into ASCII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 911 Wrapping Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 913 Truncating Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 2.x
CREATE TABLE posts ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(50), body TEXT, created DATETIME DEFAULT NULL, modified DATETIME DEFAULT NULL ); /* Then insert some posts it, or a XML formatted result for others to consume. The View layer is not only limited to HTML or text representation of the data. It can be used to deliver a wide variety of formats depending on your them with CakeResponse::type() as well: // Add a vCard type $this->response->type(array('vcf' => 'text/v-card')); // Set the response Content-Type to vcard. $this->response->type('vcf'); Usually, you’ll0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
table: */ CREATE TABLE posts ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(50), body TEXT, created DATETIME DEFAULT NULL, modified DATETIME DEFAULT NULL ); /* Then insert some posts for it, or a XML formatted result for others to consume. The View layer is not only limited to HTML or text representation of the data. It can be used to deliver a wide variety of formats depending on your them with CakeResponse::type() as well: // Add a vCard type $this->response->type(array('vcf' => 'text/v-card')); // Set the response Content-Type to vcard. $this->response->type('vcf'); Usually, you’ll0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













