コード例 #1
0
ファイル: Layout.php プロジェクト: rommmka/axiscommerce
 public function __get($key)
 {
     if (Axis_Area::isBackend()) {
         return parent::__get($key);
     }
     $before = $after = '';
     foreach ($this->getBlocks($key) as $blockId => $_config) {
         $blockContent = $this->_getBlockContent($_config);
         if ($_config['sort_order'] < 0) {
             $before .= $blockContent;
         } else {
             $after .= $blockContent;
         }
     }
     return $before . parent::__get($key) . $after;
 }