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.

1 Answer 1

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

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.