I think you might be better served saving the view script as a file and storing just the path to the file in the database rather than the whole markup. But of course, I’m not sure of the reason you’ve chosen this approach so it’s just a suggestion =)
-mike tramontano From: Daniele [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2008 1:50 PM To: [email protected] Subject: [fw-general] View script from database Hi list I am trying to build an application that fetches its view scripts from a database. The fetch process is quite straightforward, however what I now have is an unparsed string with lots of html and php code. How should I now parse this string? Should I save the string in a file and include that file like Zend_View does? Since I am storing the metadata of the view script with Zend_Cache in a separate file I would end up having to write 2 separate files for 1 view script and manage the sync process between all the files and the database, which seems quite a lot of work to do. Any help is appreciated. Thanks, Daniele
