Skip to content

Instantly share code, notes, and snippets.

@girvan
Created March 22, 2012 03:35
Show Gist options
  • Save girvan/2155438 to your computer and use it in GitHub Desktop.
Save girvan/2155438 to your computer and use it in GitHub Desktop.
<?
require('header_tpl.php'); //relative path, indicated by $sopily->template_dir
?>
<h1>Demo</h1>
url is <?=$url?> <br>
url with modifier <?=$_escape($url)?> <br>
url with multiple modifier: <?=sopily($url,Array('default'=>'http://www.sopili.net >_<|||','escape'))?> <br>
url with multiple modifier2: <?=sopily($url,'default','http://www.sopili.net')?> <br>
url with multiple modifier3: <?=$_escape($url)?> <br>
<?
require('footer_tpl.php');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment