コード例 #1
0
 protected function renderContent()
 {
     $this->stage = self::STAGE_RENDER;
     if (is_null($this->masterPage)) {
         echo $this->render();
     } else {
         foreach ($this->getBodies() as $body) {
             if ($body instanceof TContent) {
                 $this->masterPage->attachContent($body);
             }
         }
         echo $this->masterPage->renderContent();
     }
 }