Skip to main content
correct question
Source Link
Prashant Valanda
  • 12.7k
  • 5
  • 43
  • 69
<block class="Magento\Framework\View\Element\Template" name="test"
               template="test/example.phtml" />

In above example for class used '' and template '/' and template ''

use Magento\Framework\Escaper;
const XML_PATH_EMAIL_SENDER = "trans_email/ident_custom2/email";

Again we used both. So when to use '/' and ''?

<block class="Magento\Framework\View\Element\Template" name="test"
               template="test/example.phtml" />

In above example for class used '/' and template ''

use Magento\Framework\Escaper;
const XML_PATH_EMAIL_SENDER = "trans_email/ident_custom2/email";

Again we used both. So when to use '/' and ''?

<block class="Magento\Framework\View\Element\Template" name="test"
               template="test/example.phtml" />

In above example for class used '' and template '/'

use Magento\Framework\Escaper;
const XML_PATH_EMAIL_SENDER = "trans_email/ident_custom2/email";

Again we used both. So when to use '/' and ''?

Source Link
Nitesh Kuyate
  • 2.1k
  • 5
  • 26
  • 47

What is the difference between usage of '/' and '\'?

<block class="Magento\Framework\View\Element\Template" name="test"
               template="test/example.phtml" />

In above example for class used '/' and template ''

use Magento\Framework\Escaper;
const XML_PATH_EMAIL_SENDER = "trans_email/ident_custom2/email";

Again we used both. So when to use '/' and ''?