Subclass AgaviTemplateLayer and read the template from the DB. Your special problem there might be that you can't easily include such stuff in PHP, so for a PHP renderer, it'll be a tad more difficult. Write to a temp file or stream, or maybe implement a stream wrapper (see PHP manual) that reads from the database and use AgaviStreamTemplateLayer.

<layer name="decorator" class="MyDatabaseTemplateLayer" />

- David


On 03.04.2010, at 10:42, Shoan Motwani wrote:

Hi All,

My project requires storing the master template in database. What do I need to do to be able to set it as the master template for my views? There will be slots that will have be executed in the master template too.

Thanks in advance.

Peace,
Shoan.


--
Shoan Motwani (luke`)
e: [email protected]
w: http://shoan.net/







_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to