mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Update extend.md
This commit is contained in:
parent
70d3b47ca2
commit
7c557e8717
@ -119,6 +119,7 @@ $fenom->addModifier('my_modifier', function ($variable, $param1, $param2) {
|
|||||||
```php
|
```php
|
||||||
$fenom->addTest($name, $code);
|
$fenom->addTest($name, $code);
|
||||||
?>
|
?>
|
||||||
|
```
|
||||||
|
|
||||||
# Add template provider
|
# Add template provider
|
||||||
|
|
||||||
@ -160,4 +161,4 @@ $this->setCacheDir("redis://hash/compiled/");
|
|||||||
* `$cache = fopen("redis://hash/compiled/XnsbfeDnrd.php", "w");`
|
* `$cache = fopen("redis://hash/compiled/XnsbfeDnrd.php", "w");`
|
||||||
* `fwrite($cache, "... <template content> ...");`
|
* `fwrite($cache, "... <template content> ...");`
|
||||||
* `fclose($cache);`
|
* `fclose($cache);`
|
||||||
* `rename("redis://hash/compiled/XnsbfeDnrd.php", "redis://hash/compiled/main.php");`
|
* `rename("redis://hash/compiled/XnsbfeDnrd.php", "redis://hash/compiled/main.php");`
|
||||||
|
Loading…
Reference in New Issue
Block a user