This file contains 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 | |
function createImage($str) { | |
header("Content-type: image/png"); | |
$handle = ImageCreate(180, 50); | |
ImageColorAllocate($handle, 255, 0, 0); | |
$txt_color = ImageColorAllocate($handle, 255,255, 255); | |
ImageString($handle, 5, 15, 18, $str, $txt_color); | |
imageflip($handle, IMG_FLIP_HORIZONTAL); | |
ImagePng($handle); | |
} |
This file contains 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
public function diamondAction() { | |
/** | |
* Lets assume only one extra param is being passed for now | |
*/ | |
$params = $this->getRequest()->getParams(); | |
Mage::register('cmstemplate_navigation/grid', array("diamond",key($params))); | |
$this->loadLayout()->renderLayout(); | |
Mage::unregister('cmstemplate_navigation/grid'); | |
} |