Re: x5 getDir vs getSkins
As you probably know by now, templates get added to the site in 3 main ways. Through Main.php by setting a new custom skin directory, through a viewer class assigning a default tpl, or through a tpl file directly adding itself to a list.
Each has its strength in certain situations. When you define your own custom skin directory in Main.php of your module, you create those new directories, and templates placed in those directories will override their counterparts in the core skin directories.
You module can also have its own skin directories in default/en/YourDevId/YourModuleName/ or in admin/en/. This is preferable when you are adding a new template to a list, not simply overriding a core template. These templates can add themselves to a list directly.
You can also build a new viewer class with a default tpl, this is preferable when you need some logic available to your template that is accessed by your view.
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey
| X-cart 5 Tutorials
Check out the responsive template