Skip to content

Instantly share code, notes, and snippets.

@AMHOL
Created April 6, 2014 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AMHOL/10000063 to your computer and use it in GitHub Desktop.
Save AMHOL/10000063 to your computer and use it in GitHub Desktop.
config/templating.php
<?php
return [
'extensions' => [
'functions' => [
'url' => function($app) {
return function($name, $params) use ($app) {
return $app->getContainer()->resolve('\Autarky\Routing\RouterInterface')
->getRouteUrl($name, $params);
};
}
]
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment