A place to log my programming solutions.
26
Oct 09

Magento $this->getSkinUrl() Wrong Template

When using $this->getSkinUrl(‘path/to/yourfile.html’) inside view (.phtml) code, and you’re getting /default/default/ instead of /default/yourtheme, this isn’t Magento working incorrectly.  Check the $argument you send and verify that the target file actually exists.

getSkinUrl() does more than just generate the proper URL, it also verifies that the file exists.  If it doesn’t find the file within the store’s /yourtheme folder, it will revert to /default.

  • StumbleUpon
  • Digg

Leave a Response

About NVNCBL and Myself

Contact Me