Does anyone know why Magento will not allow symbolic links for .phtml template files that are outside the application / design folder?
If I make a symbolic link in this folder, it works fine, but if it is connected outside of it, it does not work. So this seems like some access / security rights, but I canβt find the information anywhere.
Perhaps a Zend setup? http://zend-framework-community.634137.n4.nabble.com/Zend-Tool-not-working-with-symbolic-links-in-include-path-td662569.html
Is anyone
AUXILIARY: Thanks to Alan's suggestion below, I found a workaround - since I will use this only for local development, I am quite satisfied. If this helps someone else, I am going to add it here. Therefore, I insert the following lines into core / Mage / Core / Block / Template.php, immediately after the line Varien_Profiler :: start ($ fileName);
$storeId = Mage::app()->getStore()->getId(); $theme = Mage::getStoreConfig('design/package/name', $storeId); Mage::Log($this->_viewDir.DS.$fileName); $includes = $this->_viewDir.DS.$fileName; if(strpos($includes, 'frontend/'.$theme )) { include $this->_viewDir.DS.$fileName; };
Using the IF statement stops any base patterns that double, and only allows you to create your own theme templates.
symlink zend-framework magento
Marlon creative
source share