Get value of display() method, befor print it
Permalinkhow can i get a rendered value of display into a var before print it in a page type?
i checked the method at /concrete/core/models/area.php and there is not such a parameter at display method.
$a = new Area('Main'); $a->display($c);
To:
$a = new Area('Main'); $tmp = $a->display($c); echo $tmp;

ob_start(); // render the area as usual $html = ob_get_contents(); ob_end_clean(); echo $html;
I have never tried it on rendering an area, but use this technique often, particularly in widget helpers and plugin systems.