dwoo icon indicating copy to clipboard operation
dwoo copied to clipboard

accessing variables directly in template

Open saiballo opened this issue 8 years ago • 1 comments

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

saiballo avatar Jun 27 '17 10:06 saiballo

Hi @saiballo, sadly this is not possible actually.

You need to pass all data directly to the array or assign to global variables

emulienfou avatar Jul 12 '17 18:07 emulienfou