Yii – Caching

  • Post author:
  • Post category:Yii
  • Post comments:0 Comments

Caching is an effective way to improve the performance of your application. Caching mechanisms store static data in cache and get it from cache when requested. On the server side,…

Continue ReadingYii – Caching

Yii – Fields

  • Post author:
  • Post category:Yii
  • Post comments:4 Comments

By overriding fields() and extraFields() methods, you can define what data can be put into a response. The difference between these two methods is that the former defines the default set of…

Continue ReadingYii – Fields

Yii – RESTful APIs

  • Post author:
  • Post category:Yii
  • Post comments:0 Comments

Yii provides the following useful features for implementing RESTful APIs − Quick prototypingCustomizable object serializationResponse format (supporting JSON and XML by default)Formatting of collection data and validation errorsEfficient routingSupport for…

Continue ReadingYii – RESTful APIs

Yii – Theming

  • Post author:
  • Post category:Yii
  • Post comments:0 Comments

Theming helps you replace a set of views with another one without the need of modifying original view files. You should set the theme property of the view application component to use…

Continue ReadingYii – Theming