Update extend.md

This commit is contained in:
Ivan Shalganov 2014-06-28 23:49:06 +04:00
parent 70d3b47ca2
commit 7c557e8717

View File

@ -119,6 +119,7 @@ $fenom->addModifier('my_modifier', function ($variable, $param1, $param2) {
```php
$fenom->addTest($name, $code);
?>
```
# Add template provider
@ -160,4 +161,4 @@ $this->setCacheDir("redis://hash/compiled/");
* `$cache = fopen("redis://hash/compiled/XnsbfeDnrd.php", "w");`
* `fwrite($cache, "... <template content> ...");`
* `fclose($cache);`
* `rename("redis://hash/compiled/XnsbfeDnrd.php", "redis://hash/compiled/main.php");`
* `rename("redis://hash/compiled/XnsbfeDnrd.php", "redis://hash/compiled/main.php");`