Skip to main content

Posts

Showing posts from September, 2013

MVC Best Practices, (Tweaking Yii Framework)

Today, I'm going to talk about MVC, what is it, why we should use it in web development, then we'll dig a bit to Yii framework, to see how does it work, and talk about best practices of MVC's and Yii framework as well. On the other hand will talk about tweaking Yii framework to speed up a website performance. What is MVC? MVC is not only a 3 terms combined together. MVC is a design pattern, a software architecture, a standard used by developers to organize high scale projects. The main idea behind using MVC: code re-usability, separation of concerns, modularity, scalability, and maintainability. MVC is a Model, View, Controller. where the model represents the data layer, the view represents the presentation layer, and the controller responsible for handling requests, managing models/views.   What is Yii? Yii is a high performance, component based MVC framework, for developing web applications using PHP.   Yii, one of the fastest/efficient/lightweight/featur