WIP noscheme modifier
This commit is contained in:
parent
92035533b8
commit
651ab412a7
2 changed files with 7 additions and 1 deletions
|
@ -22,7 +22,8 @@ $app = new \Slim\Slim(
|
||||||
);
|
);
|
||||||
$view = $app->view();
|
$view = $app->view();
|
||||||
$view->parserExtensions = array(
|
$view->parserExtensions = array(
|
||||||
__DIR__.'/vendor/slim/views/SmartyPlugins'
|
__DIR__.'/vendor/slim/views/SmartyPlugins',
|
||||||
|
__DIR__.'/smarty'
|
||||||
);
|
);
|
||||||
$app->get(
|
$app->get(
|
||||||
'/',
|
'/',
|
||||||
|
|
5
smarty/modifier.noscheme.php
Normal file
5
smarty/modifier.noscheme.php
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?php
|
||||||
|
function smarty_modifier_noscheme($url) {
|
||||||
|
$info = parse_url($url);
|
||||||
|
return '//'.$info['host'].$info['path'];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue