<?php $sess = Mage::getSingleton("core/session", array("name" => "frontend"));
//$data = $this->getRequest()->getPost();
//$dd = $_GET['user'];
$cate = $_SESSION['Codess'];
$_helper = $this->helper('catalog/output');
$_category = $this->getCurrentCategory();
$catename = $_helper->categoryAttribute($_category, $this->htmlEscape($_category->getName()), 'name');
$url = $_category->getUrl();
$ta = array();
$now = array($catename=>$url);
//var_dump($now);
?>
<?php if($cate!=""){ ?>
<?php } ?><?php if($cate==""){
$_SESSION['Codess'] = $now;
}else{
$aray = $_SESSION['Codess'];
$aray[$catename] = $url;
//var_dump($aray);
$_SESSION['Codess'] = $aray;
}
?>
<?php echo 'Recently Viewed Category'; ?>
- <?php foreach ($cate as $fir=>$end) {?>
- <?php echo "<a href='".$end."'> ".$fir." "; ?> <?php } ?>
1183

被折叠的 条评论
为什么被折叠?



