nerdexam
Magento

M70-301 · Question #13

Given the information shown below, which answer will correctly assign a customized template file using layout XML? Block type: example/controller Template path: /a…

The correct answer is C. <block type="example/controller" name="example" as="example" template="examplefolder/example.phtml" />. See the full explanation below for the reasoning.

Question

Given the information shown below, which answer will correctly assign a customized template file using layout XML? Block type:

example/controller Template path:

/a pp/design/frontend/base/exampletheme/examplefolder/example.phtml

Options

  • A<template block type="example/ controller" name= "example" as="example1' file path="examplefolder/
  • B<block name="example/controller" template="examplefolder/example.phtml" />
  • C<block type="example/controller" name="example" as="example" template="examplefolder/example.phtml" />
  • D<reference name="example/controller" as "example"

How the community answered

(16 responses)
  • B
    6% (1)
  • C
    81% (13)
  • D
    13% (2)

Community Discussion

No community discussion yet for this question.

Full M70-301 Practice