title: Route with name "course" not found, zend framework 2
body: <p>I can't solve this problem... I'm new in zend and this is a modified example from <a href="http://www.zendframework.com/manual/2.3/en/user-guide/database-and-models.html" rel="nofollow">zend</a></p>
  
  <blockquote>
    <p>Zend\Mvc\Router\Exception\RuntimeException File: C:\wamp\www\test\vendor\zendframework\zendframework\library\Zend\Mvc\Router\Http\TreeRouteStack.php:317 
    Message: 
    Route with name "course" not found</p>
  </blockquote>
  
  <p>this is my module.config.php</p>
  
  <pre><code>&lt;?php 
  
  return array(
   'controllers' =&gt; array(
        'invokables' =&gt; array(
           'Course\Controller\Index' =&gt; 'Course\Controller\IndexController',
          ),  ),
      'router' =&gt; array(
           'routes' =&gt; array(
             'index' =&gt; array(
                   'type' =&gt; 'Literal',
                       'options' =&gt; array(
                       'route' =&gt; '/course',
                       'defaults' =&gt; array(
                           'controller' =&gt; 'Course\Controller\Index',
                           'action'     =&gt; 'index'
                       ),
                   ),
               ),
           )
       ),
                  'view_manager' =&gt; array(
       'template_path_stack' =&gt; array(
           'course' =&gt; __DIR__ . '/../view/'
       ),
       )
  
  
   );
  </code></pre>
  
  <p>and IndexController.php </p>
  
  <pre><code>    &lt;?php 
  
  namespace Course\Controller;
  
  use Zend\Mvc\Controller\AbstractActionController;
  use Zend\View\Model\ViewModel;
  
  class IndexController extends AbstractActionController{   
  
      protected $courseTable;
  
  
  public function indexAction()
      {
       return new ViewModel(array(
               'courses' =&gt; $this-&gt;getCourseTable()-&gt;fetchAll(),
           ));
      }
  
      public function getCourseTable()
       {
           if (!$this-&gt;courseTable) {
               $sm = $this-&gt;getServiceLocator();
               $this-&gt;courseTable = $sm-&gt;get('Course\Model\CourseTable');
           }
           return $this-&gt;courseTable;
       }
  }
  </code></pre>
  
  <p>guys please help me, because I don't have any idea of what's wrong with this. </p>