CakePHP Cookbook Documentation 5.x10 Upgrade phpunit.xml adjustments ->withConsecutive() has been removed data providers have to be static Tutorials & Examples Content Management Tutorial Getting CakePHP Checking our Installation CMS whose name contains multiple words should only pluralize the last word, for example, menu_links. Column names with two or more words are underscored, for example, first_name. Foreign keys in hasMany, everywhere, allowing you to have simpler schemas that don’t require additional id columns. The table and column names we used were not arbitrary. By using CakePHP’s naming conventions, we can leverage CakePHP0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xwhose name contains multiple words should only pluralize the last word, for example, menu_links. Column names with two or more words are underscored, for example, first_name. Foreign keys in hasMany, everywhere, allowing you to have simpler schemas that don’t require additional id columns. The table and column names we used were not arbitrary. By using CakePHP’s naming conventions, we can lever- age CakePHP to save an Article right now, saving would fail as we are not creating a slug attribute, and the column is NOT NULL. Slug values are typically a URL-safe version of an article’s title. We can use the beforeSave()0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
whose name contains multiple words should only pluralize the last word, for example, menu_links. Column names with two or more words are underscored, for example, first_name. Foreign keys in hasMany, everywhere, allowing you to have simpler schemas that don’t require additional id columns. The table and column names we used were not arbitrary. By using CakePHP’s naming conventions, we can leverage CakePHP to know that our model uses the articles table. CakePHP also uses conventions to know that the id column is our table’s primary key. Note CakePHP will dynamically create a model object for you if it cannot0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
whose name contains multiple words should only pluralize the last word, for example, menu_links. Column names with two or more words are underscored, for example, first_name. Foreign keys in hasMany, everywhere, allowing you to have simpler schemas that don’t require additional id columns. The table and column names we used were not arbitrary. By using CakePHP’s naming conventions, we can lever- age CakePHP to know that our model uses the articles table. CakePHP also uses conventions to know that the id column is our table’s primary key. Note: CakePHP will dynamically create a model object for you if it cannot0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 3.x
underscored. For example users, article_categories, and user_favorite_pages respectively. Field/Column names with two or more words are underscored: first_name. Foreign keys in hasMany, belongsTo/hasOne everywhere allowing you to have simpler schemas that don’t require additional id columns. The table and column names we used were not arbitrary. By using CakePHP’s naming conventions, we can leverage CakePHP to know that our model uses the articles table. CakePHP also uses conventions to know that the id column is our table’s primary key. Note CakePHP will dynamically create a model object for you if it cannot0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
underscored. For example users, article_categories, and user_favorite_pages respectively. Field/Column names with two or more words are underscored: first_name. Foreign keys in hasMany, belongsTo/hasOne everywhere allowing you to have simpler schemas that don’t require additional id columns. The table and column names we used were not arbitrary. By using CakePHP’s naming conventions, we can leverage CakePHP to know that our model uses the articles table. CakePHP also uses conventions to know that the id column is our table’s primary key. Note: CakePHP will dynamically create a model object for you if it cannot0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 2.x
VALUES ('Title strikes back', 'This is really exciting! Not.', NOW()); The choices on table and column names are not arbitrary. If you follow CakePHP’s database naming conventions, and CakePHP’s class $this->request->accepts(); Check for a single type: $this->request->accepts('application/json'); static CakeRequest::acceptLanguage($language = null) Get all the languages accepted by the client, or check every time whether the resource has changed, instead of using it directly. This is commonly used with static resources such as images and other assets. The etag() method (called entity tag) is a string that0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
VALUES ('Title strikes back', 'This is really exciting! Not.', NOW()); The choices on table and column names are not arbitrary. If you follow CakePHP’s database naming conventions, and CakePHP’s class $this->request->accepts(); Check for a single type: $this->request->accepts('application/json'); static CakeRequest::acceptLanguage($language = null) Get all the languages accepted by the client, or check every time whether the resource has changed, instead of using it directly. This is commonly used with static resources such as images and other assets. The etag() method (called entity tag) is a string that0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













