1

I need to achieve this {{skin url="img/logo.png" _area="frontend" _package="my-package" _theme="default"}} via PHP. The reason is, rewriting email templates and extracting common templates of headers and footers into PHP part, leaving only text and simple HTML of emails in Magento's admin panel.

Marecky
  • 113
  • 6

1 Answers1

3

In a theme template you could use for example

$this->getSkinUrl('img/logo.png', [
    '_area'    => 'frontend',
    '_package' => 'my-package',
    '_theme'   => 'default',
]);
fmrng
  • 3,398
  • 19
  • 19