public static function model($className = __CLASS__) { return parent::model($className); }
public function loadModel($id) { $model = ProductAttribute::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }