protected function _sendContent($content) { if (!is_string($content) && is_callable($content)) { $content = $content(); } echo $content; }