Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined variable $template_engine #152

Open
smalos opened this issue Oct 14, 2022 · 2 comments
Open

Undefined variable $template_engine #152

smalos opened this issue Oct 14, 2022 · 2 comments

Comments

@smalos
Copy link

smalos commented Oct 14, 2022

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?

@paragonie-security
Copy link
Contributor

paragonie-security commented Oct 17, 2022

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.

@smalos
Copy link
Author

smalos commented Oct 31, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants