Comparing
#4 with
#6
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.
```php
const STATUS_PUBLISHED = 'published';
const STATUS_DRAFT = 'draft';[...]