cannot import resource in symfony2

Viewed 12725

I am new to symfony2. I am designing a form.

My action for submission is task_new. And my routing.yml is as follows:

task:
    pattern:   /task/
    defaults:  { _controller: AcmeTaskBundle:Task:new}
task_new:
     defaults:{_controller:AcmeTaskBundle:Task:sub}

I want that after submission the form it should go to sub action. when i am running this code I am getting the following error:

Cannot import resource "C:\wamp\www\Symfony\src\Acme\TaskBundle/Resources/config/routing.yml" from "C:/wamp/www/Symfony/app/config\routing.yml".

What should I do?

1 Answers
Related