/** * Render nothing but with a layout * * @param String $text Optional nothing text * @return String Rendered output */ public function render_nothing($text = '') { if ($this->layout) { $factory = $this->get_template_factory(); $layout = $factory->open($this->layout); $layout->content_for_layout = $text; $text = $layout->render(); } return parent::render_text($text); }