slim3-controller icon indicating copy to clipboard operation
slim3-controller copied to clipboard

Class 'App\Controllers\IndexController' not found

Open Karan1458 opened this issue 8 years ago • 2 comments

Hello Marty,

I know it's novice question. I was trying out to create a PHP Application. Already configured slim for my working. It's working fine without controllers. I have integrated your controller library then I keep on getting the following: Fatal error: Uncaught Error: Class 'App\Controllers\IndexController' not found in D:\Webserver\Website\sharey\app\routes.php

I tried appending the following in my composer.json "autoload": { "psr-4": { "App\\": "app/" } } I checked your documentation. Still getting this error. Can you help in getting started ?

Karan1458 avatar Aug 07 '16 10:08 Karan1458

try composer command ./composer.phar dump-autoload -o

qipt8 avatar Sep 24 '16 07:09 qipt8

try composer command ./composer.phar dump-autoload -o

You, sir, are my hero! I was trying to find a problem for so long and it was the final step for deploy. Thank you so much! ^^

cpt-erwin avatar Feb 17 '20 03:02 cpt-erwin