Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说,有没有办法从控制器加载 Magento 主题而无需切换存储?谢谢。
你应该可以打电话Mage::getDesign()->setTheme();。如果您需要对 的预期参数的引用,该getDesign函数将返回一个实例。Mage_Core_Model_Design_PackagesetTheme
Mage::getDesign()->setTheme();
getDesign
Mage_Core_Model_Design_Package
setTheme