Cake PHP framework

Cake PHP framework 这东东时常在我这个 blog 上订阅的 del.icio.us/tag/php 中出现。

这是一个基于 PHP 的 framework 。它的作者称 Cake PHP framework 的设计思想源自 37signalsRuby on Rails ,一个最近非常的 Ruby 框架。他说:

after playing around with Ruby on Rails you don’t want to develop software the old way. Rails does all the paperwork involved with connecting to the database, setting up the templating, linking code to URLs in a meaningful way, and so on. You write the application business logics and fire it up. Very fast, very efficient programming, saves a lot of unnecessary bother.

Cake aims to provide an easy way to write PHP applications. While designed as a Rails rip-off, it aims to be a framework of it’s own, along with certain functionalities, such as custom, specialized modules, that, if I understand correctly, Rails developer are not particularily fond of.

类似于 Ruby on Rails ,它封装了数据库连接,模板,及生成链接。最大的特点就是数据操作,不用自己再写多少代码。和 Ruby on Rails 类似,它生成一个数据表的操作最少只要一行代码。 Cake PHP framework 还有很大的一个优点就是它是一个轻量级的框架,虽然第一次看来会觉得很神奇,但是仔细看它的代码也很好懂而且也没什么特殊之处,但其开发使用方式确实很独特,实用,高效。如果是作基于数据库的 PHP 系统,这是一个很值得考虑的选择 。

看一下 Cake Tutorial 就能了解用 Cake PHP framework 建立一个 Web Application 是如何的快速方便了。它介绍了如何快速地建立一个 blog 程序的例子,几分钟就能搞定。

越来越发现 PHP 世界的有趣,哈哈。

2 thoughts on “Cake PHP framework”

Leave a Reply

Your email address will not be published. Required fields are marked *