Created
November 20, 2015 13:25
-
-
Save Rayne/031112f6300c0970f96b to your computer and use it in GitHub Desktop.
Fat-Free Framework: New `$ttl` attribute for <include>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$f3 = require 'base.php'; | |
error_reporting(E_ALL); | |
$f3->DEBUG = 3; | |
$f3->UI = 'UI/'; | |
$f3->CACHE = 'folder=tmp/cache/'; | |
$f3->TEMP = 'tmp/temp/'; | |
echo Template::instance()->render('test.html'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a:3:{i:0;s:42:"<h2>somefile.html</h2> | |
<p>1448025630</p> | |
";i:1;d:1448025630.0445809;i:2;i:0;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>test.html</h1> | |
<?php echo $this->render('somefile.html',$this->mime,get_defined_vars(),5); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>somefile.html</h2> | |
<p><?php echo time(); ?></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>somefile.html</h2> | |
<p>{{ time() }}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>test.html</h1> | |
<!-- https://github.com/bcosca/fatfree-core/pull/96 --> | |
<include href="somefile.html" ttl="5"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment