This commit is contained in:
parent
69366f1a01
commit
8c45315bfd
|
@ -73,21 +73,15 @@ Murph has somes twig functions to manage URLs:
|
|||
|
||||
### Generic functions
|
||||
|
||||
* Same as [twig url](https://symfony.com/doc/current/reference/twig_reference.html#url) but catches all exceptions:
|
||||
`{{ safe_url(routeName, options, relative) }}`: same as [twig url](https://symfony.com/doc/current/reference/twig_reference.html#url) but catches all exceptions
|
||||
* Same as [twig url](https://symfony.com/doc/current/reference/twig_reference.html#path) but catches all exceptions:
|
||||
`{{ safe_path(routeName, options, relative) }}`
|
||||
* Same as [twig url](https://symfony.com/doc/current/reference/twig_reference.html#url) but catches all exceptions: `{{ safe_url(routeName, options, relative) }}`
|
||||
* Same as [twig path](https://symfony.com/doc/current/reference/twig_reference.html#path) but catches all exceptions: `{{ safe_path(routeName, options, relative) }}`
|
||||
|
||||
### Node functions
|
||||
|
||||
* Generates a URL using a node:
|
||||
`{{ node_url(node, options, relative) }}`
|
||||
* Generates a path using a node:
|
||||
`{{ node_path(node, options, relative) }}`
|
||||
* Generates a URL using a node and catches all exceptions:
|
||||
`{{ safe_node_url(node, options, relative) }}`
|
||||
* Generates a path using a node and catches all exceptions:
|
||||
`{{ safe_node_path(node, options, relative) }}`
|
||||
* Generates a URL using a node: `{{ node_url(node, options, relative) }}`
|
||||
* Generates a path using a node: `{{ node_path(node, options, relative) }}`
|
||||
* Generates a URL using a node and catches all exceptions: `{{ safe_node_url(node, options, relative) }}`
|
||||
* Generates a path using a node and catches all exceptions: `{{ safe_node_path(node, options, relative) }}`
|
||||
|
||||
### Filters
|
||||
|
||||
|
|
Loading…
Reference in a new issue