of doing things. • Development can be several times faster if you use conventions. • Frameworks constrains you to a set of best practices, e.g.: • Escapes MySQL statements for you • Decides where you put your files • Speeds you up by offering scaffolding* capabilities * Terms & conditions applies
extracted CakePHP inside C:\xampp\htdocs\cakephp • Go to http://localhost/cakephp to see the app • Setup PHP in your console • Get Windows env var PATH to point to C:\xampp\php
application that implements the business logic. • It is responsible for retrieving data and converting it into meaningful concepts for your application. • This includes processing, validating, associating or other tasks related to handling data. • In CakePHP, models are always singular
• For example, as the Modal layer returns a set of data, the view would use it to render a HTML page containing it, or an XML or JSON response. • In CakePHP, views are always plural
responsible for rendering back a response with the aid of both the Model and the View Layer. • They are, like, a manager. • In CakePHP, controllers are always plural
automatically populated • `name` is automatically used as a Model’s $displayField • `id` is automatically used as a Model’s $primaryKey • `dessert_id` is the foreign key
Model::save(), it is save from SQL injection if you put your variables into parameters. Example: • $this-‐>Movie-‐>save({ ‘name’ => ‘Titanic’, ‘year’ => ‘1997’ })
concern of CakePHP users. CakePHP 2.4 has gotten better but is not as fast as other frameworks such as Yii Framework • Too magical: CakePHP has a lot of magic underneath and not understanding it may result in the developer spending more time than neccessary