1 | <?php |
||
17 | class CategoriesMetadata extends CiiModel |
||
|
|||
18 | { |
||
19 | /** |
||
20 | * Returns the static model of the specified AR class. |
||
21 | * @param string $className active record class name. |
||
22 | * @return CategoriesMetadata the static model class |
||
23 | */ |
||
24 | public static function model($className=__CLASS__) |
||
28 | |||
29 | /** |
||
30 | * @return string the associated database table name |
||
31 | */ |
||
32 | public function tableName() |
||
36 | |||
37 | /** |
||
38 | * @return array validation rules for model attributes. |
||
39 | */ |
||
40 | public function rules() |
||
53 | |||
54 | /** |
||
55 | * @return array relational rules. |
||
56 | */ |
||
57 | public function relations() |
||
65 | |||
66 | /** |
||
67 | * @return array customized attribute labels (name=>label) |
||
68 | */ |
||
69 | public function attributeLabels() |
||
79 | |||
80 | /** |
||
81 | * Retrieves a list of models based on the current search/filter conditions. |
||
82 | * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions. |
||
83 | */ |
||
84 | public function search() |
||
98 | } |
||
99 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.