Hi anyOne. I'd like to know what's the quickest way to parse a template file between eval with (<p>$VAR</p>) and str_replace with {<p>{VAR}</p>}
Thanks a lot 🙂
If you want to go the eval route, then you might as well use PHP itself as the template language, and not use eval at all.
Hi. Tks so much for the reply. I'm getting involved in a small cms project and I don't completely agree with my team 🙂 If I get it in well you don't agree with the use of eval in a template class, do you ? See you soon. Take care.
I dont agree with template classes in general. Php is a template system when your objects are designed properly. And MUCH faster than any template engine made in php.