title: Why is my Drupal 8 module show Page not found?
body: <p>I'm following the <a href="https://knpuniversity.com/screencast/drupal8-under-the-hood/modules-routes-controllers#play" rel="nofollow noreferrer">Modules, Routes and Controllers</a> tutorial. However, I kept getting "Page not found" regardless of "Clear all cache".</p>
  
  <p>dino_roar.info.yml file:</p>
  
  <pre><code>name: Dino ROAR
  type: module
  description: "ROAR at you"
  package: Custom
  core: 8.x
  </code></pre>
  
  <p>dino_roar.routing.yml</p>
  
  <pre><code>dino_says:
    path: /the/dino/says/
    defaults:
      _controller: Drupal\dino_roar\Controller\RoarController::roar
    requirements:
      _permission: 'access content'
  </code></pre>
  
  <p>and src/Controller/RoarController.php file:</p>
  
  <pre><code>&lt;?php
  
  namespace Drupal\dino_roar\Controller;
  use Symfony\Component\HttpFoundation\Response;
  
  class RoarController
  {
      public function roar(){
          return new Response('ROOOOAR');
      }
  }
  </code></pre>
  
  <p>When accessing through: <a href="http://drupal-8.dd:8083/the/dino/says/" rel="nofollow noreferrer">http://drupal-8.dd:8083/the/dino/says/</a> I get the page not found error. Any suggestion is much appreciated.</p>
  
  <p>Below is my folder structure:
  <a href="https://i.stack.imgur.com/xVg9y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xVg9y.png" alt="enter image description here"></a></p>
  
  <p>And this is what it looks when I collapsed the src folder.
  <a href="https://i.stack.imgur.com/KtYdU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KtYdU.png" alt="enter image description here"></a></p>