/**
  * Execute action $action and save result to array $this->blocks
  *
  * @param waViewAction $action
  * @param waDecorator $decorator
  * @param string $name
  */
 public function executeAction(waViewAction $action, $name = 'content', waDecorator $decorator = null)
 {
     $action->setController($this);
     $content = $decorator ? $decorator->display($action) : $action->display();
     if (isset($this->blocks[$name])) {
         $this->blocks[$name] .= $content;
     } else {
         $this->blocks[$name] = $content;
     }
 }
 /**
  * @param string $name
  * @param waViewAction $action
  * @param waDecorator $decorator
  */
 public function executeAction($name, $action, waDecorator $decorator = null)
 {
     $action->setLayout($this);
     $content = $decorator ? $decorator->display($action) : $action->display();
     $this->setBlock($name, $content);
 }