News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Michael Girouard's Blog:
Rolling Your Own MVC The View
0 comments :: posted Monday April 28, 2008 @ 09:39:45
voice your opinion now!

Michael is back with part three of his series stepping you through the creation of your own MVC framework (Part 1 and Part 2) with a look at the part that interfaces with the user - the View.

Using the view as a starting point may seem odd at first considering the view-related actions are some of the last steps in the page load scenario, but since our views don't have any external dependencies, unit tests are very easy to write and so is the accompanying code.

He explains how views work along with the rest of the framework and some of the basic rules surrounding how they get their data. Code comes along with the explanations for different views like XML, HTML and JSON methods of output.

tagged with: modelviewcontroller mvc view tutorial output xml html json


Padraic Brady's Blog:
An Example Zend Framework Blog App - Part 2 The MVC Application Architecture
0 comments :: posted Thursday April 24, 2008 @ 08:43:31
voice your opinion now!

In this new post to his blog today, Padraic Brady continues his series looking at developing a blog with the Zend Framework. He moves on to look at the MVC structure behind the application in this latest post.

After speaking with any number of users about getting started with a framework, I find many do not have an advanced understanding of the corner stone of a current day web application framework: the Model-View-Controller Design Pattern.

He explains the normal development approach (kind of a Page Controller where each bit of functionality has its own page) versus the Model/View/Controller approach of separation of presentation and logic in a structured fashion. He also goes through each of the parts of the MVC equation and shows the difference between the roles that the Controller and Model have in the application.

tagged with: mvc modelviewcontroller zendframework introduction tutorial

Michael Girouard's Blog:
Rolling Your Own MVC The Page Load Scenario
0 comments :: posted Wednesday April 09, 2008 @ 15:33:45
voice your opinion now!

Michael Girouard has posted his 10,00 foot view of the typical structure of an Model/View/Controller application (and framework) and how a page request is handled:

In my previous article, I announced that I would be documenting the process of developing a simple MVC framework. In this post I will go into a little more detail about each of the specific components of our MVC and will discuss the series of events which occur each time a page loads, otherwise known as the page load scenario.

He talks about how URIs work, the role of mod_rewrite, several of the objects involved (like the Front Controller, Request, Route and View) and how they all fit in with the custom Models, Views and Controllers the user could define.

tagged with: modelviewcontroller mvc page load object route request

phpaddiction:
Url Routing with PHP - Part Three
1 comment :: posted Monday April 16, 2007 @ 07:03:00
voice your opinion now!

phpaddiction has posted part three of its URL Rewriting tutorial series today - the creation of the "C" (Controller) in MVC.

In the final part of this series, I will build a functional modular front controller that can be easily adapted to small projects. It is basically the "C" in MVC for a simple MVC framework. If you haven’t read the first two articles I recommend that you read over them first. Url Routing with PHP - Part One and Url Routing with PHP - Part Two.

They start with the base created before (with some slight modifications) and build up the dispatcher to handle their new requests and the controller to respond. In their example, when the Controller is called, it runs the execute() method and, based on the input, either calls another function or returns an error if it doesn't exist.

tagged with: url routing mvc modelviewcontroller controller dispatch execute url routing mvc modelviewcontroller controller dispatch execute


zend framework security package book zendframework PHP5 release releases cakephp database mysql ajax developer application PEAR code pecl job conference

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework