Autoload of controller class names is not something that you access in your application or have a great need, except in cases like this.
You will need to manually include / request the file containing the controller that you want to extend.
<?php require_once 'UserController.php'; // no adjustment to this path should be necessary class ArticleController extends UserController { // ... }
Please note that your view scripts will still be served from views / scripts / articles, not views / scripts / users. You can customize the viewing path in each action, if necessary.
As stated in the comment, you do not need to change the path of the require_once statement, but you can change it if necessary (for example, require_once APPLICATION_PATH . '/modules/test/controllers/UserController.php'; )
source share