How to get the Attribute Label of a attribute in a Model using Yii Framework

No Comments
  1. Use the getAttributeLabel() method (available since v1.1.4)
  2. Code Example:
    Products::model()->getAttributeLabel('brand_id')
  3. The above example gets the attribute label for the brand_id attribute in the model Products.

Image Credits: Photo by Isis França on Unsplash.

Last Updated On March 22, 2018

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link