Hi, I am totally interested into such feature for Symfony ! I allready posted about that few days ago : http://groups.google.com/group/symfony-devs/browse_thread/thread/37b5b42720ef79e3/7194efc6fced35fe?hl=en&lnk=gst&q=template+plugin#7194efc6fced35fe
I started to work on a sfCLassTemplateViewPlugin, that use classes and (to come) inheritance in views. Its quite simple : template are no more simple flat PHP files, but now classes that inherit from a generic Template class (and why not others templates classes, with some autoloading tweaks). When using the new view render class (by tweaking module.yml), the corresponding Template class is loaded, an object is created (with vars defined into the action) and the render() method is called. Thats a first step, partials are coming, but it seems to works fine. I dont know if thats is what you are looking for :p But i think this small improvement add many possibilities to symfony. And as you can enable it only for the modules you want, this doesn't break other template files and plugins ! And I am thinking about another view rendering plugin, more evolved, using a real template system like http://www.tinybutstrong.com/ (or other one, but as I allready know this one...). It should be quite easy to integrate it into symfony. I hope to release my plugins on the official plugins site, but as I work on it only on my free time, this could be quite slow :p Sorry for my bad english :p Romain On Sep 7, 1:58 pm, FX Poster <[EMAIL PROTECTED]> wrote: > Hmmm. I've thought a little, and came to some interesting things. > Symfony's slot system is perfectly compatible with view inheritance: > we already inherit our views from the layout, so why can't we inherit > views from other views (which can be inherited from layout)? It can be > done with some modifications in Partial helper and sfPHPView class. Is > anybody interested in this powerful thing? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
