I currently have a CMS that writes some pages in a database table. In order to render them with Zend_View I have a method that writes them to the filesystem. I'd like to skip that process and render the templates directly from the database.
For example:
<?php
$template = '<html>
<head>
<title>Test</title>
</head>
<body>
<?php echo $this->test ?>
</body>
</html>';
$view = new Zend_View();
$view->test = 'This is a test';
echo $view->render($template);
?>