A very common, modern way of developing web applications in any platform is to apply the MVC (Model View Control) design pattern, which roughly works as follow:
The View displays data supplied by the Model. Typically, this is done using a templating system.
In the View, users generate actions (by visiting a URL or clicking a button) that get mapped to a Controller.
The Controller recieves the event, checks it (validation, security, logging, etc) and where needed requests or updates data in the Model.
Finally, the controller will redirect the user to the action result page, again making use of the Model to display data.
Code Igniter, a PHP MVC framework that I use to develop JungleDragon™, has implemented the MVC pattern as described above. There is a nice little extra though: the Front Controller. Combined with Code Igniter's excellent URL routing, you can do some pretty powerful, elegant things. Allow me to explain...
A very common, modern way of developing web applications in any platform is to apply the MVC (Model View Control) design pattern, which roughly works as follow:The View displays data supplied by the Model. Typically, this is done using a templating system.In the View, users generate actions (by visiting a URL or clicking a button) that get mapped to a Controller.The Controller recieves the event, checks it (validation, security, logging, etc) and where needed requests or updates data in the Model.Finally, the controller will redirect the user to the action result page, again making use of the Model to display data.Code Igniter, a PHP MVC framework that I use to develop JungleDragon™, has implemented the MVC pattern as described above. There is a nice little extra though: the Front Controller. Combined with Code Igniter's excellent URL routing, you can do some pretty powerful, elegant things. Allow me to explain...
การแปล กรุณารอสักครู่..