-
Notifications
You must be signed in to change notification settings - Fork 189
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
Couldn't get Step 06 to work #70
Comments
Thanks! I was struggling with the same issue, luckily I saw your issue. After a while, I realized my problem was the working directory where I was running the server. |
Need a .htaccess file in your public folder. |
Sorry I don'T get it. When I put the index.php in the root and echo a simple "hello world" all is fine. |
@Wondarar you need to start your server in the public so either:
from the root of your project or directly from public folder:
I see you created virtual host testsite2.loc so make sure it points to public folder, not the root of your project. .htaccess is not required :) |
Ok, since not required I skip that. Where do I set the pointer to public? Is it within this conf file? Is it in line 12, adding \public ? If I understand it correcty, $routeInfo should NOT give me an empty array? And here's the Route.php |
Your config is invalid.
Then make sure Leave this first |
Glad I could help :) |
Struggled with Part 6 for a while because it kept telling the class
Example\Controllers\Homepage
could not be found. Took me about two hours to figure out I needed to runcomposer update
.This is not immediately obvious and should be mentioned in the tutorial.
The text was updated successfully, but these errors were encountered: