public function render() { RenderingStack::push(PageData::instance()); include $this->__page_path; RenderingStack::pop(); }
public function render() { if (!$this->is_cached()) { $this->process(); } $final_include_layout_path = substr($this->get_cached_layout_path(), 1); ob_start(); include $final_include_layout_path; $rendered_content = ob_get_contents(); ob_end_clean(); RenderingStack::push($this->tree_view); echo $rendered_content; RenderingStack::pop(); }