Hello all,
I'm creating my own templatesystem because I only need a few little operations to be supported. One of them is loading widgets with dynamic data generated from a database in my template.
Is there a way to parse PHP code, don't display the result but store it in a variable and then use the generated source from that variable somewhere else?
Right now I'm using ob_get_contents()
but whenever I use an echo command it gets overruled and the content displays as the very first thing on my site. This is a behaviour I want to work arround somehow.
Is that possible? Or am i misusing the ob_get_contents
completely?