UrlAlias::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : UrlAlias
$className string active record class name.
return UrlAlias the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Beispiel #1
0
 public function getUrlAlias()
 {
     return UrlAlias::model()->find("query='product_id={$this->product_id}'");
 }
All Usage Examples Of UrlAlias::model