Magento
M70-201 · Question #66
Which of the following could be used to pass an object to a block method?
The correct answer is B. <action method="setFoo">. See the full explanation below for the reasoning.
Question
Which of the following could be used to pass an object to a block method?
Options
- Aoption method=nsetFoo">
- B<action method="setFoo">
- C<action method="setFoo">
- DIt is not possible to pass an object to a block method via layout XML.
How the community answered
(25 responses)- A4% (1)
- B72% (18)
- C8% (2)
- D16% (4)
Community Discussion
No community discussion yet for this question.