Redirect latte problem, “No route for Dashboard:”

about a year ago

Member | 39


in my presenter, there is simple function:

public function pickChildFormSucceeded($button)
    $values = $button->getForm()->getValues();
    $name =  $values['child'];


I prepared latte file child_overview.latte in app/presenters/templates/Dashboard

{block content}

<h1>Hello world</h1>

but when I click button and initiate that function I get error: No route for Dashboard:child_overview()
when I put $this->redirect(‘default’); it works fine. So did I forget to add child_overview.latte to some configuration file?


about a year ago

David Matějka
Moderator | 5891

hi, a default route for an action parameter doesn't allow the underscore. I'd recommend you to use camel case naming instead – in your case childOverview