1 | <?php |
||
11 | class BannerModule extends BModule |
||
12 | { |
||
13 | public $defaultController = 'BBanner'; |
||
14 | |||
15 | public $name = 'Баннеры'; |
||
16 | |||
17 | public static $bannerLocations = array( |
||
18 | 'all' => 'Не важно', // Для доступа по url без привязки к локации |
||
19 | 'rotator' => 'Ротатор на главной', |
||
20 | 'catalog' => 'Каталог верх', |
||
21 | 'catalog_left' => 'Каталог слева', |
||
22 | ); |
||
23 | |||
24 | public function getUploadPath() |
||
28 | |||
29 | public function getUploadUrl() |
||
33 | } |
||
34 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: