nerdexam
Magento

M70-301 · Question #42

When assigning a template file, what is the difference between

The correct answer is B. Template= "" can only be used when the block is being instantiated.. See the full explanation below for the reasoning.

Question

When assigning a template file, what is the difference between

Options

  • ANo difference: Both set a template for an existing block.
  • BTemplate= "" can only be used when the block is being instantiated.
  • C<action method="setTemplate"> can only be used when the block is being instantiated.
  • DTemplate="" is wrong and doesn't work at all.

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    84% (26)
  • C
    3% (1)
  • D
    10% (3)

Community Discussion

No community discussion yet for this question.

Full M70-301 Practice