-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
I18nRoutingBundle doesn't seem to be working for Symfony 3.4.
JobController.php
use BeSimple\I18nRoutingBundle\Routing\Annotation\I18nRoute;
class JobController extends Controller
{
/**
*
* @I18nRoute({ "en": "/jobs", "pl": "/ogloszenia" }, name="jobs")
* @Method("GET")
*/
public function jobsListAction()
{
$jobs = $this->getDoctrine()
->getRepository(Job::class)
->findAllActive();
return $this->render('job/list.html.twig', [
'jobs' => $jobs,
]);
}
}
config.yml
be_simple_i18n_routing:
annotations: true
error:
An exception has been thrown during the rendering of a template ("I18nRoute "jobs" (pl) does not exist.").
kusiu
Metadata
Metadata
Assignees
Labels
No labels