1 | <?php |
||
2 | |||
3 | class AdvertAdmin extends ModelAdmin |
||
0 ignored issues
–
show
|
|||
4 | { |
||
5 | public static $managed_models = array( //since 2.3.2 |
||
6 | 'Advert', 'AdvertCategory', 'AdvertLayoutType', |
||
7 | ); |
||
8 | |||
9 | public static $url_segment = 'adverts'; // will be linked as /admin/adverts |
||
10 | |||
11 | public static $menu_title = 'Adverts'; |
||
12 | } |
||
13 |
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.