WIP noscheme modifier

This commit is contained in:
Pierre Rudloff 2015-10-30 13:40:36 +01:00
parent 92035533b8
commit 651ab412a7
2 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,8 @@ $app = new \Slim\Slim(
);
$view = $app->view();
$view->parserExtensions = array(
__DIR__.'/vendor/slim/views/SmartyPlugins'
__DIR__.'/vendor/slim/views/SmartyPlugins',
__DIR__.'/smarty'
);
$app->get(
'/',

View File

@ -0,0 +1,5 @@
<?php
function smarty_modifier_noscheme($url) {
$info = parse_url($url);
return '//'.$info['host'].$info['path'];
}