Controller" Application \ Sonata \ NewsBundle \ Controller \ PostController :: homeAction"对于URI新闻不可调用

时间:2014-09-08 10:21:09

标签: symfony

我正在使用带有symfony 2.5的SonataNewsBundle。

如果我跑... / web / news / 显示错误

Controller" Application \ Sonata \ NewsBundle \ Controller \ PostController :: homeAction"对于URI新闻不可调用。

请帮助任何人

1 个答案:

答案 0 :(得分:0)

我的容器:调试在下面 - 新闻包的一部分

 sonata.news.block.breadcrumb_archive                                 container Sonata\NewsBundle\Block\Breadcrumb\NewsArchiveBreadcrumbBlockService                       
 sonata.news.block.breadcrumb_post                                    container Sonata\NewsBundle\Block\Breadcrumb\NewsPostBreadcrumbBlockService                          
 sonata.news.block.recent_comments                                    container Sonata\NewsBundle\Block\RecentCommentsBlockService                                         
 sonata.news.block.recent_posts                                       container Sonata\NewsBundle\Block\RecentPostsBlockService                                            
 sonata.news.blog                                                     container Sonata\NewsBundle\Model\Blog                                                               
 sonata.news.form.comment.status_type                                 container Sonata\CoreBundle\Form\Type\StatusType                                                     
 sonata.news.form.type.comment                                        container Sonata\NewsBundle\Form\Type\CommentType                                                    
 sonata.news.hash.generator                                           container Sonata\NewsBundle\Util\HashGenerator                                                       
 sonata.news.mailer                                                   container Sonata\NewsBundle\Mailer\Mailer                                                            
 sonata.news.manager.comment                                          container Sonata\NewsBundle\Entity\CommentManager                                                    
 sonata.news.manager.post                                             container Sonata\NewsBundle\Entity\PostManager                                                       
 sonata.news.permalink.collection                                     container Sonata\NewsBundle\Permalink\CollectionPermalink                                            
 sonata.news.permalink.date                                           container Sonata\NewsBundle\Permalink\DatePermalink                                                  
 sonata.news.permalink.generator                                      n/a       alias for "sonata.news.permalink.date"                                                     
 sonata.news.serializer.handler.post                                  container Sonata\NewsBundle\Serializer\PostSerializerHandler                                         
 sonata.news.status.comment                                           container Sonata\NewsBundle\Status\CommentStatusRenderer