diff --git a/docs/usage.md b/docs/usage.md index a05d99c..a7eff94 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -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 ); -``` \ No newline at end of file +```