Wednesday, 15 January 2014

php - Issue with routing on my Symfony2 project -


I am facing the following error:

An exception is entered during rendering There is a template ("Unable to generate a URL for the named path" as this route does not exist "casanet_addpaperpage"). "Kanset Bundle: Admin: deliverables.html.twig" at line 38.

Here's my admin:

   Projects => $ Projects,))}} Public Function AddpaperAction (request $ request) {$ paper = new paper (); $ FormPaper = $ this- & gt; createForm (new papertype, $ paper); if ($ request- & gt; method ("POST") ) {$ FormPaper-> handleRequest ($ request); if ($ formPaper-> isValid ()) {$ em = $ this-> getDoctrine () -> getManager (); $ paper = $ Formpaper-> meldata (); $ em- & gt; continues ($ paper); $ em-> flush ();} $ this-> redirect toRoute ("casanet_deliverablespage") returned $} Return - ('cassette bundle: admin: addpaper.html.twig', array ("formpapper" => gt; form form $$ formPaper-> createView (),));}}  < / Pre> 

Here is the related route to my routing. IML file:

  casanet_addpaperpage: path: / admin / addper default: {_controller: CasanetBundle: admin: adpress}  

I have tried to clean the cache, run composer updates, change the name of the road, route through other routes, and not yet get any results. .

Edit: Here is the related section of my idea:

   Add a paper & lt; / A & gt;  

It looks like your small name is not correct for your bundle,

  casanet_addpaperpage: path: / admin / addper default: {_controller: ProjectBCasanetBundle: Admin: addpaper}  

No comments:

Post a Comment