Revision #5 was created by waterloomatt on Aug 7, 2013, 7:48:56 PM.
Changed from extraneous text
Content
[...]
Yii Bootstrap
Yii 1.1.+
News Model
------------------ Of course you DB needs a field to hold the status of the news item. This tutorial assumes your DB table has a field is called _status_ and is a _varchar_ field.
Next, We need to add the statuses that a news item can have. For the sake of simplicity, I've added them as constants but you could use a separate DB lookup table.