Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'App\Controllers\IndexController' not found #4

Open
Karan1458 opened this issue Aug 7, 2016 · 2 comments
Open

Class 'App\Controllers\IndexController' not found #4

Karan1458 opened this issue Aug 7, 2016 · 2 comments

Comments

@Karan1458
Copy link

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 ?

@qipt8
Copy link

qipt8 commented Sep 24, 2016

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

@cpt-erwin
Copy link

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! ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants