1 | <?php |
||
7 | class UserController extends Controller |
||
|
|||
8 | { |
||
9 | /** |
||
10 | * Construct this object by extending the basic Controller class. |
||
11 | */ |
||
12 | public function __construct() |
||
20 | |||
21 | /** |
||
22 | * Show user's PRIVATE profile |
||
23 | */ |
||
24 | public function index() |
||
34 | |||
35 | /** |
||
36 | * Show edit-my-username page |
||
37 | */ |
||
38 | public function editUsername() |
||
42 | |||
43 | /** |
||
44 | * Edit user name (perform the real action after form has been submitted) |
||
45 | */ |
||
46 | public function editUsername_action() |
||
58 | |||
59 | /** |
||
60 | * Show edit-my-user-email page |
||
61 | */ |
||
62 | public function editUserEmail() |
||
66 | |||
67 | /** |
||
68 | * Edit user email (perform the real action after form has been submitted) |
||
69 | */ |
||
70 | // make this POST |
||
71 | public function editUserEmail_action() |
||
76 | |||
77 | /** |
||
78 | * Edit avatar |
||
79 | */ |
||
80 | public function editAvatar() |
||
86 | |||
87 | /** |
||
88 | * Perform the upload of the avatar |
||
89 | * POST-request |
||
90 | */ |
||
91 | public function uploadAvatar_action() |
||
96 | |||
97 | /** |
||
98 | * Delete the current user's avatar |
||
99 | */ |
||
100 | public function deleteAvatar_action() |
||
105 | |||
106 | /** |
||
107 | * Show the change-account-type page |
||
108 | */ |
||
109 | public function changeUserRole() |
||
113 | |||
114 | /** |
||
115 | * Perform the account-type changing |
||
116 | * POST-request |
||
117 | */ |
||
118 | public function changeUserRole_action() |
||
132 | |||
133 | /** |
||
134 | * Password Change Page |
||
135 | */ |
||
136 | public function changePassword() |
||
140 | |||
141 | /** |
||
142 | * Password Change Action |
||
143 | * Submit form, if retured positive redirect to index, otherwise show the changePassword page again |
||
144 | */ |
||
145 | public function changePassword_action() |
||
157 | } |
||
158 |
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.