Combine CodeIgniter with Smarty |
[eluser]Unknown[/eluser]
a different approach for using smarty with CodeIgniter http://www.joy2share.com/code/log/smarty...niter.html
[eluser]jayrulez[/eluser]
[quote author="holms" date="1224402337"]pure nonsense. How a web developer team can work without a smarty.. withou helpers? withoud preformated debug, without HELPERS which will generate block of code for a man who will then work with html/css =) It's more greater to create a block of code wich can be generated out of something, then to use than to include some php mixed with html file.. in it. what if a technical designer doesn't know server-side language at all and all he want's is to see where css id's and class'es are. Smarty syntax is so basic that he understand it even without reading a manual, and php.. it's not his side btw. anyway when you'll work with a huge programmer team, you'll understand that smarty is a GOD. you can write your own engine, but just DON'T USE PHP for templeting.[/quote] Agreed. Thats the fundamental purpose for smarty... she framework i use has smarty tied in to it and it makes dealing with html so much easier. for example, in a form for selecting your birthday i simple have this Code: <div class="quickreg-form-item-field"> and it generates list of months jan to dec, days 1 to 31 and years in that range. i find the template engine very useful plus the difference in speed when using smarty and not is not even that noticable to us humans.
[eluser]Tudip Technologies[/eluser]
We have been using Smarty with CI for almost all the CI projects. Here is a small blog entry with sample code. Hope it helps someone. <a href='http://tudip.blogspot.com/2012/03/smarty-with-codeigniter.html'>http://tudip.blogspot.com/2012/03/smarty-with-codeigniter.html</a> |
Welcome Guest, Not a member yet? Register Sign In |