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
Laravel 3.2 Documentationfolder. Laravel 3.2 Added to_array method to the base Eloquent model. Added $hidden static variable to the base Eloquent model. Added sync method to has_many_and_belongs_to Eloquent Allows pivot table timestamps to be disabled. Made the get_timestamp Eloquent method static. Request::secure now takes application.ssl configuration option into consideration. 'Laravel\\Blade', Update Eloquent many-to-many tables. Eloquent now maintains created_at and updated_at column on many-to-many intermediate tables by default. Simply add these columns to your tables. Also, many-to-0 码力 | 139 页 | 1.13 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
Laravel 5.0 Documentation
User extends Eloquent { use SoftDeletingTrait; } You must also manually add the deleted_at column to your dates property: class User extends Eloquent { use SoftDeletingTrait; protected encrypt option to your queue configuration file: 'encrypt' => true Laravel 4.1.29 improves the column quoting for all database drivers. This protects your application from some mass assignment vulnerabilities Upgrading To 4.1.26 From <= 4.1.25 This change requires the addition of a new remember_token column to your users (or equivalent) database table. After this change, a fresh token will be assigned0 码力 | 242 页 | 1.44 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 码力 | 820 页 | 2.52 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













