Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Details
- Type: Error
- Message: Class 'appcontrollersHomeController' not found
- File: C:xampphtdocsslimappconfigdependencies.php
- Line: 13
- app
- config
- routes.php
- dependencies.php
- controllers
- HomeController.php
- public
- index.php
- composer.json
- "autoload": {
- "psr-4" : {
- "App\" : "app/"
- }
- }
- <?php
- $container = $app->getContainer();
- // controller
- $container['HomeController'] = function($container) {
- return new appcontrollersHomeController;
- };
- <?php
- $app->get('/', 'HomeController:index');
- <?php
- namespace AppControllers;
- class HomeController
- {
- public function index()
- { ... }
- }
- <?php
- require __DIR__ . '/../vendor/autoload.php';
- require __DIR__ . '/../app/config/settings.php';
- $app = new SlimApp(["settings" => $config]);
- require __DIR__ . '/../app/config/dependencies.php';
- require __DIR__ . '/../app/config/routes.php';
- $app->run();
- "autoload": {
- "psr-4" : {
- "app\" : "app/"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement