Snippets with the tag: url

Base Secure URL

Description

Get the base secure store URL

Code

Mage::getBaseUrl('web', true);

Changing the admin URL

Description

Changing the Admin URL: Open the /app/etc/local.xml file, locate the <frontName> tag, and change the ‘admin’ part it to something a lot more random.

Code

<frontName><![CDATA[this-is-the-new-url]]></frontName>

Show image html

Description

Show image using current skin path (PHTML)

Code

<img src="<?= $this->getSkinUrl('images/logo.png'); ?>" alt="logo" />

Show image cms

Description

Show image using current skin path (CMS)

Code

<img src={{skin url="images/logo.png"}}  />

How to check for https

Description

How to check for https

Code

if (!Mage::app()->getStore()->isCurrentlySecure()) { ... }

Skin URL

Description

Skin URL

Code

echo $this->getSkinUrl('images/test.jpg');