1 | <?php |
||
4 | class AdvertisementController extends Controller |
||
|
|||
5 | { |
||
6 | private static $allowed_actions = array( |
||
7 | "removealladvertisements" => "ADMIN", |
||
8 | "deletealladvertisements" => "ADMIN" |
||
9 | ); |
||
10 | |||
11 | public function removealladvertisements($request) |
||
26 | |||
27 | public function deletealladvertisements($request) |
||
35 | } |
||
36 |
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.