Yii Framework Forum: How To Display The Lookup Table Type Name In Frontend View - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Display The Lookup Table Type Name In Frontend View lookup table is just like in the blog example Rate Topic: -----

#1 User is offline   sommey 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 53
  • Joined: 02-February 14
  • Location:Islamabad, Pakistan

Posted 04 July 2014 - 04:18 AM

Hi everyone.
I am saving the status of my post in the status field of the table. just like in the blog example in which we saved the post status either Publish or Draft etc. Now I want to display the status of the post on front end post detail page. but there the numeric value of the status field is displaying. But I want to display my status as either Publish or Draft.
How to do this ?
Thanks in advance.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users