dwoo
dwoo copied to clipboard
accessing variables directly in template
Hi all,
Is it possible to access php variables in dwoo template without passing it as array?
for example in my page.php I have
$foo = 'myvalue';
and I want to access it in template with something like this:
{$.foo}
but it does not work
Hi @saiballo, sadly this is not possible actually.
You need to pass all data directly to the array or assign to global variables