Closed ronanguilloux closed 10 years ago
Sorry, my mistake: a BC BREAK from 2012-08-31 changed prototype of "PageExtension::url" method and so "sonata_page_url" Twig helper.
Before: sonata_page_url(page, absolute) After: sonata_page_url(page, {'param1': 'value1', ...}, absolute)
TODO : documentation page about SonataPage Twig helpers to be updated (WIP)
Summary : Use of the
path()
twig helper with a opt boolean argument (as documented in the Sonata Page Twig Helpers documentation page) raises an error in the routing serviceScenario details : In SonataAdmin,
sonata.page.service.default
type pageand the tricky part: call the
path()
Twig function using the optional boolean argument:Important note: adding the ', true' optional argument to the
path()
func call raises the error below (see detailled trace). While removing this opt argument, error is no more raised, & returned link URL is ok.Custom Block Twig template :
Custom Block Service PHP code :
Error trace :
app/config YAML file:
composer.json: