2

I have a custom block in my layout file like this:

<block type="xxx/xxx" name="xxx" template = "bar.phtml">
<label>Foo</label>
</block>

How do I get the value of label from bar.phtml ?

Please note I do not want to use setData function to set my variable and pass it. I want to extract the value inside tags from the phtml (or anywhere else). I hope its clear.

0

This question has been answered on Stackoverflow. It seems there is no direct function to achieve this.

Full answer may be found here: https://stackoverflow.com/a/30176543/1184359

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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