10-11-2012, 10:53 AM
CakePHP
CakePHP.ppt (Size: 592 KB / Downloads: 57)
A framework for developing applications in PHP
Inspired by Ruby on Rails
Follows MVC design pattern
Convention over configuration
No wheel reinventing required!
Paths + parameters
Cake uses url to pass parameters
Apache mod_rewrite converts url into scriptname and parameters
http://www.example.com /controllername/action/param1/param2/…
Uses paths to figure out views
Views stored in “controllername” folder
Other benefits
Bake script – command line script generator
Uses LAMP common web platform
(Linux, Apache, MySQL and PHP)
Helpers for HTML, Forms, Pagination, AJAX, Javascript, XML, RSS
Scaffolding (no need for views)
Create controller with var $scaffold;
Disadvantages
Mainly due to the limitations of PHP
Clumsy OOP
Access data through arrays not classes (which RoR does) – more code in view
Create tables in separate SQL
Not well documented yet