1

How do I get a layout container element programmatically from the name?

$layout->getElement('name');
minlare
  • 2,454
  • 25
  • 46

1 Answers1

1

Try:

$layout->renderElement('name');
Undo
  • 25,519
  • 37
  • 106
  • 129
  • This answer turned up in the low quality review queue, presumably because you don't provide any explanation of the code. If this code answers the question, consider adding adding some text explaining the code in your answer. This way, you are far more likely to get more upvotes — and help the questioner learn something new. – lmo Jun 26 '16 at 19:17