This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//BaseUrl | |
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); | |
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); | |
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK); | |
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); | |
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); | |
//BasePath | |
Mage::getBaseDir('media') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Product | |
class Report { | |
private $header; | |
private $body; | |
private $footer; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
windows host file directory: | |
C:\Windows\System32\drivers\etc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
#Added by NHD | |
# | |
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName localhost | |
DocumentRoot "D:\wamp\www" | |
</VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! function_exists('ellipsize')) | |
{ | |
/** | |
* Ellipsize String | |
* | |
* This function will strip tags from a string, split it at its max_length and ellipsize | |
* | |
* @param string string to ellipsize |
NewerOlder