noiselabs / SmartyBundle

Smarty3 template engine bundle for Symfony
http://smartybundle.readthedocs.io/
GNU Lesser General Public License v3.0
51 stars 36 forks source link

Using SmartyBundle with Silex #42

Closed matmalone closed 10 years ago

matmalone commented 10 years ago

Is it possible to use SmartyBundle with Silex? And if so what would it take to connect to two together? There appears to be a few other people on Stackoverflow who have tried to do this before, but it doesn't sound like anyone has gotten it to work yet.

vitorbrandao commented 10 years ago

Hello @matmalone. I'll take a look at this tonight and get back to you. Could you share here the relevant links you found out on Stackoverflow?

matmalone commented 10 years ago

@noisebleed thanks for the response. Here are the links: https://stackoverflow.com/questions/14522800/how-to-render-silex-forms-in-smarty-template https://stackoverflow.com/questions/11574933/silex-form-without-twig

I'm trying to use the form helpers, which is why those questions are mostly talking about forms. The guy in the first post had what seemed like an interesting approach. But I ran into the same problem where it looks like to setup the extension you need to setup objects that are not meant to be instantiated externally. Although the main problem may be that I'm just not that familiar with SmartyBundle.

vitorbrandao commented 10 years ago

@matmalone Have you tried FractalizeR/Silex_SmartyServiceProvider already? If not, please give it a try and if doesn't fit your needs please tell me so.

matmalone commented 10 years ago

@noisebleed I am using the SmartyServiceProvider and it works well. Actually I after working more with my project I think what I really need is a more fully integrated system with form AND validation. Re-reading your README I think that's beyond the scope of this project. If that's what I really want, I may need to look into other options (read: Twig). Thanks again for your help!