Update usage.md

This commit is contained in:
Ivan Shalganov 2013-07-04 09:57:07 +04:00
parent ec1dba923c
commit a10808d1f3

View File

@ -29,10 +29,10 @@ $result = $fenom->fetch("template/name.tpl", $vars);
Create pipe-line into callback
```php
$fenom->export(
$fenom->pipe(
"template/sitemap.tpl",
$vars,
$callback = [new SplFileObject("/tmp/sitemap.xml", "w"), "fwrite"], // pipe to file /tmp/sitemap.xml
$chunk_size = 1e6 // chunk size for callback
);
```
```