TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-08-2007, 05:50 PM   #1 (permalink)
The Contributor
Good Samaritan 
 
d4v1d's Avatar
 
Join Date: Dec 2007
Location: Durban, South Africa
Posts: 51
Thanks: 1
d4v1d is on a distinguished road
Default To MVC... or not to MVC...

I've heard a lot about MVC (Model-View-Controller), but I'm not entirely sure what it is or how it works? Also, what would be the best way to implement it?
d4v1d is offline  
Reply With Quote
Old 12-08-2007, 05:59 PM   #2 (permalink)
bdm
The Acquainted
Good Samaritan 
 
Join Date: Nov 2007
Posts: 127
Thanks: 14
bdm is on a distinguished road
Default

Depending on what you are coding, I would almost always recommend it.

Here are two very nice introduction tutorials to the Zend Framework which uses MVC (Quicktime is unfortunately required).
- http://mitchellhashimoto.com/zend-fr...tting-started/
- http://mitchellhashimoto.com/zend-fr.../zend-registry

And here also two nice video tutorials using Code Igniter (Flash required).
- http://codeigniter.com/tutorials/

And lastly: http://www.phppatterns.com/docs/desi...roller_and_php

Any questions, just shoot.
bdm is offline  
Reply With Quote
The Following User Says Thank You to bdm For This Useful Post:
d4v1d (12-08-2007)
Old 12-08-2007, 06:27 PM   #3 (permalink)
The Contributor
Good Samaritan 
 
d4v1d's Avatar
 
Join Date: Dec 2007
Location: Durban, South Africa
Posts: 51
Thanks: 1
d4v1d is on a distinguished road
Default

Thanks a mil My next question was going to be whether or not to use a framework, or to try code the MVC myself, but I think you've answered that for me already.
d4v1d is offline  
Reply With Quote
Old 12-08-2007, 11:06 PM   #4 (permalink)
The Wanderer
 
Rizza's Avatar
 
Join Date: Dec 2007
Location: Orlando, FL
Posts: 23
Thanks: 0
Rizza is on a distinguished road
Default



There's no need to reinvent the wheel. I've been using CakePHP quite a bit but have found myself frustrated by it's tightly coupled nature. I'd recommend going with Zend. It's backed by a very capable and strong community... not to mention the people who are behind PHP itself.
Rizza is offline  
Reply With Quote
Old 12-09-2007, 12:02 AM   #5 (permalink)
The Contributor
Good Samaritan 
 
d4v1d's Avatar
 
Join Date: Dec 2007
Location: Durban, South Africa
Posts: 51
Thanks: 1
d4v1d is on a distinguished road
Default

Yeah, I've been reading up on a few of the frameworks the past two weeks. Zend seems to have my vote so far, a bit more freedom than with CakePHP and codeignitor. Besides, Zend Studio has the support for it, which makes my life just that much easier.
d4v1d is offline  
Reply With Quote
Old 12-09-2007, 12:10 AM   #6 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

You took the words right out of my mouth, Rizza!
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 04:43 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design