You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* @Template("MyWebBundle:_Layout:widget/right.html.twig")
* @Cache(expires="+1 hour", smaxage=3600, maxage=3600)
* @Route("esi/right",name="esi_right")
*/
public function rightAction($line = null, $title='a')
{
echo ($title);
$title is still 'a'
I know that by using esi,the partial of a page will be a url instead, and the only way to pass variable to a url is by url(get) or post. but I still don't know that's for sure or not.
The text was updated successfully, but these errors were encountered:
Well, this is logical. You are generating the url for your esi_right route, but this route does not have a placeholder for title, so it won't be found when matching the route again
in my twig:
in my controller:
$title is still 'a'
I know that by using esi,the partial of a page will be a url instead, and the only way to pass variable to a url is by url(get) or post. but I still don't know that's for sure or not.
The text was updated successfully, but these errors were encountered: