Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing with the child routes #18

Open
johnchadwick opened this issue Apr 8, 2015 · 0 comments
Open

Routing with the child routes #18

johnchadwick opened this issue Apr 8, 2015 · 0 comments

Comments

@johnchadwick
Copy link

On page 104: Although I don't understand why you route to 'manage', I have a more pressing issue. I tried routing anywhere by forcing this piece of code:
return $this->redirect()->toRoute( self::DEFAULT_ROUTE, array('action' => 'manage') and it gets to the main home page. However substituting in the variable and trying 'add':
return $this->redirect()->toRoute('feeds', array('action'=>'add'));
This will NOT work, however this works:
return $this->redirect()->toRoute('feeds/add');
It is something to do with the configuration of routes with child routes. Can you tell me what route would work? You have module, controller, action in the url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant