Symfony, CMS tutorial, routing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gintare
    New Member
    • Mar 2007
    • 103

    Symfony, CMS tutorial, routing

    I am following online tutorial for Symfony CMS: http://symfony.com/doc/master/cmf/tutorial/introduction.ht ml

    On the final page the routing is created:
    http://symfony.com/doc/master/cmf/tutorial/auto-routing.html

    But i am not able to view any of pages. Where i should search for the mistake? Actually, debug:router does not lists any url with posts. But doctrine:phpcr: node:dump lists nodes with posts. Tutorials offers to check the following url: http://localhost:8000/page/home

    It gives ERROR: Unable to find the controller for path "/page/home". The route is wrongly configured. 404 Not Found - NotFoundHttpExc eption

    Code:
    c:\Bitnami\wampstack-5.4.38-0\sym_prog\simpleCMS>php app/console doctrine:phpcr:node:dump
    ROOT:
      cms:
        routes:
          page:
            home:
          post:
            2015-10-14:
              my-first-post:
              my-second-post:
              my-third-post:
              my-fourth-post:
        pages:
          Home:
        posts:
          My First Post:
          My Second Post:
          My Third Post:
          My Fourth Post:
    
    
    c:\Bitnami\wampstack-5.4.38-0\sym_prog\simpleCMS>php app/console debug:router
    [router] Current routes
     Name                     Method Scheme Host Path
     _wdt                     ANY    ANY    ANY  /_wdt/{token}
     _profiler_home           ANY    ANY    ANY  /_profiler/
     _profiler_search         ANY    ANY    ANY  /_profiler/search
     _profiler_search_bar     ANY    ANY    ANY  /_profiler/search_bar
     _profiler_purge          ANY    ANY    ANY  /_profiler/purge
     _profiler_info           ANY    ANY    ANY  /_profiler/info/{about}
     _profiler_phpinfo        ANY    ANY    ANY  /_profiler/phpinfo
     _profiler_search_results ANY    ANY    ANY  /_profiler/{token}/search/results
     _profiler                ANY    ANY    ANY  /_profiler/{token}
     _profiler_router         ANY    ANY    ANY  /_profiler/{token}/router
     _profiler_exception      ANY    ANY    ANY  /_profiler/{token}/exception
     _profiler_exception_css  ANY    ANY    ANY  /_profiler/{token}/exception.css
  • gintare
    New Member
    • Mar 2007
    • 103

    #2
    I am sorry, the reason for the question was, that it was not yet final page of tutorial.
    Everything works if you proceed with the tutorial.

    Comment

    Working...