Today, the MVC pattern basically occupies all of the professional website designs for customers. Although a single file script is still suitable for personal sites, such as ASP. form building technologies such as net web form can provide rapid development capabilities. For those who need to work in large teams and still need to have precise control over the generated HTML, it seems that MVC has found the correct balance point. The fuel PHP framework is expected to learn from early MVC frameworks such as codeigniter, Zend framework, symphony, and Ruby on Rails.
Like most MVC frameworks, the file organization structure has its own meaning. Resources, views, controllers, and models all correspond to specific folders. In addition, common applications can be stored.CodeAnd framework package. Route can be configured, but by default there is a URL mapped to the Controller class name and action method.
To do anything, you must write additional code. This is a common objection to the MVC framework. With a single file script, people can process everything in a simple and linear way, from request processing to HTML generation. In comparison, MVC requires at least one controller and an attempt. In many cases, the model also needs to transmit data between each other. As a result, the Code Generation Method of scaffolding (scaffolding) has become very common. For this purpose, the application in fuel PHP is called "Oil )".
On the nettuts + website, Philip sturgeon's overview also covers form generation and data verification. Similarly, all of these are standard technologies, and MVC developers on other platforms are familiar with them. Fuel comes with a basic database abstraction layer and an optional ORM package for users who like this data access method. Orm is mainly based on activerecord, but it is also affected by other ORM methods.
Fuel is released using the MIT protocol. It is currently in the first candidate version, and at least one version is planned in the future.
View Original English text:Infoq: Fuel PHP: An MVC Framework