easydb icon indicating copy to clipboard operation
easydb copied to clipboard

Undefined variable $template_engine

Open smalos opened this issue 3 years ago • 2 comments

I followed the installation instructions for composer.

Your examples use $template_engine, like: $template_engine->render('comment', $row);

I get this error:

Warning: Undefined variable $template_engine in /home/xyz/easydb/test.php on line 25 Fatal error: Uncaught Error: Call to a member function render() on null in

I've search the whole source code and I'm not able to find a reference to $template_engine. What am I missing?

smalos avatar Oct 14 '22 04:10 smalos

This appears to be an error in /home/xyz/easydb/test.php on line 25 rather than anything within EasyDB

The example in the Readme assumes that $template_engine is... A template engine. Such as Twig.

paragonie-security avatar Oct 17 '22 06:10 paragonie-security

It might be better to replace $template_engine with var_dump(), as you can't expect everyone to know what that means.

smalos avatar Oct 31 '22 08:10 smalos