How translate a class assigned to a variables and reference within html tag: $title = $block->getTitle();


(Mai Chuong) #1

$title = $block->getTitle();

<?php echo ''.$title.''; ?>

...

I try every possible way that people suggested through community.
Problem: the title which is a text: “New shop item” written in a data_static_blocks.xml

I want the collect-phrase get the title into en_US.csv file but still won’t work??
Please kindly give a thought on this matter!