Skip to content

Instantly share code, notes, and snippets.

View marlonmleite's full-sized avatar
🦈

Marlon Maxwel marlonmleite

🦈
View GitHub Profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/marlon/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
<?php
echo Mage::getBaseUrl();
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
echo $this->getSkinUrl('images/imagename.jpg');
echo $this->getSkinUrl('images/imagename.gif', array('_secure'=>true));
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
@marlonmleite
marlonmleite / Magento: urls para login, logout, conta, registro, carrinho, verificar se usuário está logado e outros métodos utilitários.php Magento: urls para login, logout, conta, registro, carrinho, verificar se usuário está logado e outros métodos utilitários.php
//login url
<?php echo Mage::getUrl('customer/account/login'); ?>
//logout url
<?php echo Mage::getUrl('customer/account/logout'); ?>
//My Account url
<?php echo Mage::getUrl('customer/account'); ?>
//Register url