From Wikipedia, the free encyclopedia
Jump to: navigation, search
CakePHP
Screenshot [show]
The CakePHP Default Page
Developer(s)
Cake Software Foundation, Inc.
Stable release
1.2.5[1] / 2009-09-08; 3 months ago
Preview release
1.3-alpha[2] / 2009-11-03; 38 days ago
Written in
PHP
Operating system
Cross-platform
Development status
Active
Type
Web application framework
License
MIT License
Website
http://www.cakephp.org
CakePHP1 is an open source web application framework for producing web applications. It is written in PHP, modeled after the concepts of Ruby on Rails, and distributed under the MIT License.[3]
Contents[hide]
1 History
1.1 Lithium fork
2 Features of CakePHP
2.1 Console applications
3 See also
4 References
5 Bibliography
6 External links
//
[edit] History
CakePHP started in 2005, when Ruby on Rails was gaining popularity. The community has since grown and spawned several sub-projects.[4][5] CakePHP is not a port of Ruby on Rails to PHP, but appropriates many of its useful concepts.
[edit] Lithium fork
In October 2009, project manager Garrett Woodworth and developer Nate Abele resigned from the project to focus on Lithium,[6][7] a framework code base originally being developed at the CakePHP project as "Cake3", but which was not agreed upon by the entire development team as a replacement for CakePHP. The remaining development team continued to focus on the original roadmap that was previously defined.[8]
[edit] Features of CakePHP
Like Rails, CakePHP makes it easier for the user to interface with the database with the active record pattern. It also encourages use of the model-view-controller architectural pattern. Upcoming version 2.0 of CakePHP is being modeled around the Data Mapper architectural pattern.[9] Its features include:
Compatible with versions 4 and 5 of PHP
CakePHP 2.0 is planned for supporting PHP 5.2 and above (including PHP 5.3)[10]
Integrated CRUD for datasource interaction
Application scaffolding[11]
MVC architecture[12]
Built-in validation,[13] Data sanitization,[14] and Internationalization and localization[15]
Various Behaviors, Components and Helpers to minimize development time[16][17][18]
Unit testing using the SimpleTest framework, available in CakePHP version 1.2[19]
[edit] Console applications
CakePHP offers a CLI accessed by the "cake" command. There are several core console applications available in the library, among them:
"acl" for the management of Access Control Lists
"bake" for the generation of models, controllers and views
"i18n" for application internationalization
"schema" for database schema creation and migration.
"testsuite" for running unit tests, including model, controller and web tests.
Developers can also create their own "shells" and shared functionality across these shells called "tasks" (in CakePHP's parlance).[20] The scripts have access to the application's models and controllers. An example use-case for this would be the scheduled update of the application's data from an RSS or other data feed, with the full power of the application logic and data relationships created with CakePHP.
Đăng ký:
Đăng Nhận xét (Atom)
Không có nhận xét nào:
Đăng nhận xét