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 11 Question 52 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 52
Topic #: 11
[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:

Reyes
14 days ago
Option A? What is this, the stone age? C and D are the only options that don't make me feel like I'm coding in the dark ages.
upvoted 0 times
...
Buffy
15 days ago
D all the way, baby! Who needs to mess with constructor parameters when you can just use the layout XML? That's the Magento way!
upvoted 0 times
Elina
4 days ago
B) Create template view /frontend/template/product/update, phtml
upvoted 0 times
...
Verda
5 days ago
A) Create protected variable $_template
upvoted 0 times
...
...
Antonette
1 months ago
I tried A, but the block just didn't render the template correctly. C and D are definitely the way to go. Gotta love those Magento best practices!
upvoted 0 times
Leslie
1 days ago
Yeah, A can be tricky sometimes. C and D are definitely the recommended approaches.
upvoted 0 times
...
Bette
8 days ago
I always follow Magento best practices, C and D are the way to go for sure.
upvoted 0 times
...
Providencia
21 days ago
I had the same issue with A, but C and D worked perfectly for me.
upvoted 0 times
...
...
Wenona
1 months ago
Hmm, I think B and D are the correct answers. Creating a template file and using the layout XML seem like the standard approach.
upvoted 0 times
Veronique
7 days ago
Definitely, having a separate template file keeps the code clean and organized.
upvoted 0 times
...
Shannan
7 days ago
I always prefer using layout XML for setting templates, it's easier to manage.
upvoted 0 times
...
Jeannetta
12 days ago
I think using the layout XML is more flexible than setting it in the constructor.
upvoted 0 times
...
Milly
18 days ago
I agree, B and D are the way to go for setting a template.
upvoted 0 times
...
...
Myrtie
2 months ago
C and D are the way to go! You can either configure the block's constructor or use layout XML to set the template. Easy peasy!
upvoted 0 times
Rosalyn
11 days ago
I think I'll go with configuring the block's constructor. Seems like a straightforward approach.
upvoted 0 times
...
Colette
14 days ago
That's true! It allows you to easily change the template without modifying the block's code.
upvoted 0 times
...
Carmela
20 days ago
I prefer using layout XML to set the template. It's more flexible.
upvoted 0 times
...
Rosio
1 months ago
C and D are the way to go! You can either configure the block's constructor or use layout XML to set the template. Easy peasy!
upvoted 0 times
...
...
Tamar
2 months ago
I believe it's B and C.
upvoted 0 times
...
Marci
2 months ago
I think the correct approaches are A and D.
upvoted 0 times
...

Save Cancel