I'm going through a tutorial in Symfony and despite the fact that I'm still in the shallow end of the pool, I can't get the very first page in the tutorial to come up and I don't know why.
Let me also mention this: According to the tutorial, I should get a default page when I use this URL: localhost/aqua_note. An error came up when I went to that URL. When I went to this URL: localhost/aqua_note/web, I got the default page they reference in the course.
I removed the DefaultController and replaced it with the code they present which looks like this:
namespace AppBundle\Controller; //namespace must match the Directory Structure
public function showAction() //the only rule for a controller function is that it must return a Symfony response object
return new Response('Under the Sea!');
When I go to the page which should show up now as localhost/aqua_note/genus,
I get a 500 error.
Why? What am I doing wrong?
Let me also say that I ran into some trouble using the Symfony installer and instead used Composer. If that makes a difference, I'm not sure, but any direction at this point would be very much appreciated.