public static function getCustomerCar($id) { return CHtml::textField(Cars::model()->findByPk($id), 'id', 'licenseNumber'); }
public function loadCarModel($id) { $model = Cars::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }