3. Why CakePHP 3 ?
■ Rich ORM,
■ Zero configuration (Convention Over Configuration)
■ Easily extend with Components, Helpers, Behaviours and Plug-ins
■ Build in validation
■ ACL Functionality and Security
■ CRUD scaffolding
■ Ability to create tests
■ Less coding time
4. Naming Convention Database
■ Table names are plural and underscored (users, user_favorite_pages)
■ Field names with two or more words are underscored: first_name
■ Foreign keys in hasMany, belongsTo/hasOne relationships are recognized by default as
the (singular) name of the related table followed by “_id”
■ article_categories whose name contains multiple words, the foreign key would be
article_category_id
■ RelationalTable will be both plural and underscored like articles_tags.
■ Arranged in alphabetical order (articles_tags rather than tags_articles)
7. Summary of Naming Convention
■ Database table: “articles”
■ Table class:ArticlesTable, found at src/Model/Table/ArticlesTable.php
■ Entity class:Article, found at src/Model/Entity/Article.php
■ Controller class:ArticlesController, found at src/Controller/ArticlesController.php
■ View template, found at src/Template/Articles/index.ctp
9. CakePHP ORM
■ Table
– The database tables or collection of entities
■ Entities
– A database row or a collection of data that make up a
single record
17. Security
■ Authentication & Authorization
■ Sensitive data should be Unaccusable
■ CSRF Protection
■ Checking Proper Data request
■ Prevent easy access by changing url or making fake request
18. ThankYou
I am available on
Facebook : fb.com/tarikul05
Twitter : twitter.com/tarikul05
Github : github.com/tarikul05
Stackoverflow : stackoverflow.com/u/3278789