The steps to create an MVC web application
I've read many tutorials about MVC method ... I am now about to start an e-commerce application with PHP... So I'm confused about from where to start.(What's the best directory hierarchy ,the files, the templates etc开发者_Go百科)
Knowing that I will create admin pages(in a subdirectory with MVC), and website pages ... all I want is to know how to organize all this.
I've already created PHP websites (I am good in PHP and OOP). But not with MVC.
Thank you
As mentioned by @Daniel A. White, there already exists a lot of PHP MVC frameworks. Have a look at:
- DooPHP (Personally love this one!)
- CakePHP
- Symfony (updated for version 2)
- Zend
- CodeIgniter
There are a number of different open source MVC frameworks for PHP such as CakePHP that should get you inspiration.
I'd start with a PHP framework like CodeIgniter because it's already packaged with a simple, effective and easy-to-use MVC structure that'll get you up to stratch with the logic necessary to start programming this type of web app. They also have a good user guide and support base - so help's never that far away if you run into trouble.
精彩评论