I copy FunctionCapitalize to my own dir and rename it.
But how can i use/include my function ?
The documentation only say add through \Dwoo\Loader::addDirectory.
But i got an error
Fatal error: Uncaught exception 'Dwoo\Exception\CompilationException' with message 'Compilation error at line 8 in "file:Component/Project/Views/add.tpl" : Type error for bla with type2' in /var/www/test/Vendor/dwoo/dwoo/lib/Dwoo/Compiler.php:806 ...
class FunctionBla extends Plugin {
// same as FunctionCapitalize
I copy FunctionCapitalize to my own dir and rename it. But how can i use/include my function ?
The documentation only say
add through \Dwoo\Loader::addDirectory
.But i got an error
Can you provide me an example ?