Difference between #4 and #6 of
Add Beautiful Radio/Checkbox Buttons To Grid

Changes

Title unchanged

Add Beautiful Radio/Checkbox Buttons To Grid

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

bootstrap, BootGridView, Radiobuttonlist, checkbox, ui

Content changed

[...]
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';
[...]
6 0
16 followers
Viewed: 37 723 times
Version: 1.1
Category: How-tos
Written by: waterloomatt
Last updated by: Rohit Suthar
Created on: Aug 7, 2013
Last updated: 10 years ago
Update Article

Revisions

View all history