1 | <?php |
||
5 | class ControllerBase extends Controller{ |
||
|
|||
6 | |||
7 | protected $model; |
||
8 | protected $title; |
||
9 | protected $controller; |
||
10 | |||
11 | public function afterExecuteRoute($dispatcher){ |
||
17 | |||
18 | public function indexAction(){ |
||
23 | |||
24 | public function frmAction($id = NULL){ |
||
27 | |||
28 | public function readAction($id = NULL){ |
||
35 | |||
36 | public function updateAction(){ |
||
39 | |||
40 | public function deleteAction($id = null){ |
||
45 | |||
46 | public function asAdminAction(){ |
||
51 | |||
52 | public function asUserAction(){ |
||
57 | |||
58 | public function logoutAction(){ |
||
62 | |||
63 | } |
||
64 |
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.