Beginners-guide-to-php-development-with-mvc-architecture3. MVC for Noobs. Fundamentals: Best MVC Practices. Although Model-View-Controller (MVC) is known by nearly every Web developer, how to properly use MVC in real application development still eludes many people.
The central idea behind MVC is code reusability and separation of concerns. In this section, we describe some general guidelines on how to better follow MVC when developing a Yii application. To better explain these guidelines, we assume a Web application consists of several sub-applications, such as.