ProductImage::model PHP Method

model() public static method

public static model ( null | string $className = __CLASS__ )
$className null | string
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

 public function loadModel($id)
 {
     if (($model = ProductImage::model()->findByPk($id)) === null) {
         throw new CHttpException(404, 'Страница не найдена');
     }
     return $model;
 }
All Usage Examples Of ProductImage::model