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