Javascript URL parse
window.location.host : example.com:80window.location.hostname : example.com
window.location.protocol : http:
window.location.port : 8080 or 80
window.location.origin : http://example.com *
show engines;you get the list of all storage engines.
$this->getLayout()->getBlock('block_name')->toHtml();
For example
$this->getLayout()->getBlock('top.links')->toHtml();
if($i == 15) elseif($i == 25) elseif($i == 35) elseif($i == 45) elseif($i == 55) elseYou want to match 45 value,while executing this above script variable matches with each if and else condition
switch($i) {
case 15:
break;
case 25:
break;
case 35:
break;
case 45:
break;
case 55:
break;
}
In this above switch statement, if the $i values was 45 then execute 45 matched values and go through the further process.
/var/log/apache2/error.log
tail -f /var/log/apache2/error.log
ini_set('display_errors', 1); /*By default its value as 0 in php.ini*/
error_reporting(-1); /*It shows all errors*/
[css_filename.css]
[script_filename.js] - specify the script filename
[css_filename.css] - specify the css filename
$statusEnabled = Mage_Catalog_Model_Product_Status::STATUS_ENABLED;
$collection = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToFilter('status',
$statusEnabled);
/**
*
* Print query
*
*/
echo $collection->getSelect();
/**
*or
*/
echo $collection->getSelect()->__toString();
/**
*
*print collection query
*/
$Collection->printLogQuery(true);
System -> Configuration -> Developer -> Log Settings
/media - accessing the product images/var - generating the cache, report filesWithin the layout tag, update the base xml handles. For example, want to remove the newsletter globally in left column for your current theme.