Im trying to include dynamc custom header in PicoCMS.
Simple “include ‘header.php’;” wont work since the theme have only index.html file and and I cant include PHP in it. My guess is I would have to make a custom plugin for this to work but Im not shure how to do it.
They have some documentation about it http://picocms.org/docs.html#plugins but i dont understand it well enough to solve my problem…
Advertisement
Answer
I manage to solve it with creating a plugin line this:
class Header { public function before_render() { ob_start(); include 'header.php';$string = ob_get_clean();print($string); } }