 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Bill Karwin's Blog: ActiveRecord does not suck
by Chris Cornutt May 29, 2008 @ 17:07:50
Bill Karwin (formerly of Zend and the Zend Framework project) has a new post to his blog defending one of the more abused (both in code and in opinions) design patterns, ActiveRecord:
ActiveRecord is fine. It is a tool that does just what it's designed to do. What sucks is when developers try to make it do other things than what it's intended to do.
He cites his work with the Zend_Db component and how Mike Seth gets it right when he says that the pattern shouldn't be "ActiveRecord-View-Controller". He compares the ideas of a true Model in an MVC application with the incorrect ideas that many developers seem to hold.
A Model is a class that provides a logical component of your application domain. Models are products of OO design, which is a development activity I see get very little attention in the developer blogosphere or the developer tools market.
Models can reference one or many (or no) database tables and are not where the hard work is being done. That's saved for the ORM (or ActiveRecord) to do.
voice your opinion now!
activerecord designpattern modelviewcontroller mvc model orm
Michael Girouard's Blog: Rolling Your Own MVC The View
by Chris Cornutt April 28, 2008 @ 09:39:45
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.
voice your opinion now!
modelviewcontroller mvc view tutorial output xml html json
Padraic Brady's Blog: An Example Zend Framework Blog App - Part 2 The MVC Application Architecture
by Chris Cornutt April 24, 2008 @ 08:43:31
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.
voice your opinion now!
mvc modelviewcontroller zendframework introduction tutorial
Michael Girouard's Blog: Rolling Your Own MVC The Page Load Scenario
by Chris Cornutt April 09, 2008 @ 15:33:45
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.
voice your opinion now!
modelviewcontroller mvc page load object route request
Joseph Crawford's Blog: CodeIgniter
by Chris Cornutt May 14, 2007 @ 09:25:00
Joseph Crawford in looking for a PHP framework to work with at his job, decided to give CodeIgniter and liked what he saw.
Since I have started at my new job we have been looking into several different PHP frameworks to use for the new development. We pondered doing a custom framework for the site but in the end we opted to go with CodeIgniter. I have to say that overall CodeIgniter is a really nice framework. It saves us a lot of time and code when we want to do simplistic things. The best part about CodeIgniter is that it is based on the MVC design pattern.
He gives an example of one way he's using the framework a Controller that loads in a custom library and uses it (to send an email). There's also a bit on how his application is set up - directory structure, using mod_rewrite, and even some issues that he's come across so far.
voice your opinion now!
codeigniter modelviewcontroller framework library helper codeigniter modelviewcontroller framework library helper
Tony Bibbs' Blog: MVCnPHP 4.0.0 Released!
by Chris Cornutt April 10, 2007 @ 08:19:00
Tony Bibbs has announecd the latest release of a framework he's developed to make MVC in PHP applications simple - MVCnPHP.
It's been a long while since the last stable release but I'm happy to announce the release of MVCnPHP v4.0.0. This release has been a long time coming as it brings a configure-less controller. Just drop your views and commands into the directories you configured the controller to use and it will monitor them for changes.
Upon finding a file that has changed it will pull the MVC metadata out and add it to an internal configuration array that the controller will happily load into memory using APC or write out to a .php file. This basically catches this MVC implementation to what's been available in Ruby on Rails.
Also included is some sample code to get you started as well as a direct link to the PEAR channel where the framework can be downloaded.
voice your opinion now!
framework modelviewcontroller mvcnphp download release framework modelviewcontroller mvcnphp download release
|
Community Events
Don't see your event here? Let us know!
|