RE: MVC In Php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
MVC is a good way to manage responsibilities in your code.   The model
is responsible for representing your database and the view for
representing your user interface.  These two areas remain distinct from
each other and I think this is the key principle in MVC.   The
controller can 'see' both the model and the view and is responsible for
managing access to the database through the model, gathering data
required by the view and handling site navigation along the way.
 
You can program things this way yourself with some care or you can use
an MVC framework.   I have used Cake PHP (http://cakephp.org) on several
projects and once you've got into the swing of things it is great at
guiding you towards good MVC practices.
 
Brian

________________________________

From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx]
On Behalf Of swetarathi3
Sent: 07 June 2009 14:15
To: php-objects@xxxxxxxxxxxxxxx
Subject:  MVC In Php





I have 6 month of exp. In php. I want to write my code in mvc
Architecture. I find one article written on mvc in php.

http://www.sourcecode4you.com/article/articleview/5dfe0fd3-5808-4fb2-818
e-51c807cf8c6a/mvc-architecture-in-php.aspx
<http://www.sourcecode4you.com/article/articleview/5dfe0fd3-5808-4fb2-81
8e-51c807cf8c6a/mvc-architecture-in-php.aspx> 

please help me it is right or wrong






[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux