hey guys…prefer to display 1 column but i can only display 1 row so what my code is looks like this…
class CustomerController extends Controller
{
public $firstname=’’;
public function actionIndex()
{
$firstname=CustomerName::model()->findByPK(2);
$this->firstname=$firstname->firstname;
$this->render('index',array('firstname'=>$this->firstname));
}
}
its only select by primary key, and 1 row…