+ -
当前位置:首页 → 问答吧 → oscommerce二次开发问题

oscommerce二次开发问题

时间:2011-08-09

来源:互联网

显示左Menu:

PHP code

<?php
  if ($oscTemplate->hasBlocks('boxes_column_left')) {
?>

<div id="columnLeft" class="grid_<?php echo $oscTemplate->getGridColumnWidth(); ?> pull_<?php echo $oscTemplate->getGridContentWidth(); ?>">
  <?php echo $oscTemplate->getBlocks('boxes_column_left'); ?>
</div>



函数所在类:
PHP code

 function hasBlocks($group) {
      return (isset($this->_blocks[$group]) && !empty($this->_blocks[$group]));
    }

    function getBlocks($group) {
      if ($this->hasBlocks($group)) {
        return implode("\n", $this->_blocks[$group]);
      }
    }





求高人指点下,如何显示Menu的..getBlocks 这个函数。

作者: S_elva   发布时间: 2011-08-09

no one know this framework?

作者: S_elva   发布时间: 2011-08-09

热门下载

更多