Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E704 Topic 15 Question 32 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 32
Topic #: 15
[All AD0-E704 Questions]

You have created a custom block MyCompany MyModule/Block/Product/Update/ php. Which two approaches allow you to set a template to your block?

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

Marylin
6 months ago
Hmm, I might have misunderstood the question then. Thanks for the clarification.
upvoted 0 times
...
Salley
6 months ago
I agree with Lezlie, D seems like a valid approach.
upvoted 0 times
...
Lezlie
6 months ago
But setting a template via layout xml is common practice in Magento, so D must be one of the correct options.
upvoted 0 times
...
Marylin
6 months ago
I believe it's A and C instead.
upvoted 0 times
...
Lezlie
6 months ago
I think the correct approaches are B and D.
upvoted 0 times
...
Olen
6 months ago
Brice: It's good to consider all the options and eliminate the incorrect ones based on our knowledge.
upvoted 0 times
...
Hui
6 months ago
Haley: I'm not sure about option B), creating a template view directly doesn't sound familiar to me.
upvoted 0 times
...
Nickole
7 months ago
I think option D) is also a valid approach, by adding an argument node in layout xml.
upvoted 0 times
...
Haley
7 months ago
Another approach could be to configure block's constructor $template parameter via di.xml.
upvoted 0 times
...
Brice
7 months ago
I believe one approach is to create protected variable $_template.
upvoted 0 times
...
Kimberlie
7 months ago
What do you think are the two approaches to set a template to a custom block?
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77