显示左Menu:
<?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>
函数所在类: 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 这个函数。

解决方案 »

  1.   

    no one know this framework?
      

  2.   

    难道不是knows?
      

  3.   

    什么意思?不懂得楼主要说什么,找到menu所在对象xxx然后调用xxx->getBlocks('参数')。没接触过这个oscommerce,不过觉得getBlocks应该在很多类中被extends 
      

  4.   

    $oscTemplate是getBlocks所在类的创建的对象,就可以