Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

accessing variables directly in template #69

Open
saiballo opened this issue Jun 27, 2017 · 1 comment
Open

accessing variables directly in template #69

saiballo opened this issue Jun 27, 2017 · 1 comment

Comments

@saiballo
Copy link

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

@emulienfou
Copy link
Contributor

Hi @saiballo,
sadly this is not possible actually.

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

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

No branches or pull requests

2 participants