Magento
M70-201 · Question #52
Which of the following allows you to render a custom form element using a template?
The correct answer is D. Create a custom renderer for the form element, and use an anonymous block to execute the. See the full explanation below for the reasoning.
Question
Which of the following allows you to render a custom form element using a template?
Options
- ASpecify 'template' => `path/to/your/template' in the addFieId method's third parameter when
- BSet the template manually by calling $form->getElement () ->setTemplate (..) when configuring
- CSpecify the template in the element's protected variable $_template.
- DCreate a custom renderer for the form element, and use an anonymous block to execute the
- EExtend your element from Mage_Core_Block_Template, and then specify the template inthe
How the community answered
(26 responses)- A12% (3)
- B4% (1)
- C4% (1)
- D81% (21)
Community Discussion
No community discussion yet for this question.