0

I have an EE embed that processes PHP code. I would like to capture that output with a Stash variable.

I'm using a model/view approach, ie. have one template to retrieve the data and another to output the page.

I have this code working correctly in my model:

{exp:stash:set name="my_var"}
    {embed="resources/store-post-data"}
{/exp:stash:set}

<h2>Test</h2>
{exp:stash:my_var}

and get results as expected:

Test
MyPostParameterValueHere

But when I use the exact same code

{exp:stash:my_var}

in my view I get the string

{embed="resources/store-post-data"}

and not the output of the embed.

What am I missing?

0

1 Answer 1

0

I've contacted Mark Croxton, author of Stash, and he has answered this question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.