PHP templating systems - 2006/04/18 16:41We are planning to use a templating system for our web site, so that programmers can work on the PHP code while the page designers can work on the XHTML. I've prototyped pages with Smarty (http://smarty.php.net) and they appear to slow the pages down considerably.
Has anyone seen benchmarks for any of the zillions of templating systems out there, regarding how much they slow pages down? Has anyone used Smarty, YATS, or the PEAR templating packages?
| | The administrator has disabled public write access.
admin
Admin Admin
Posts: 25
Karma: 0
Re:PHP templating systems - 2006/04/19 07:07Have you used the cache in Smarty? A lot of BostonPHP folks are using it with good words about it. Check out Gabe's Smarty SIG in the forum, bet he can help.
| | The administrator has disabled public write access.
margy
User Fresh Boarder
Posts: 2
Karma: 0
Re:PHP templating systems - 2006/04/19 15:22Whether we can use Smarty's caching depends on the page. For dynamic pages, caching has to be turned off, or you don't get up-to-date information from database calls. (e.g., http://linuxdev.uua.org:8080/margy/cong-search.php ).
I am doing a set of timings using Apache Bench (ab) of more-or-less identical pags with and without Smarty, and I will post the results. It looks like pages take 20% to 50% longer to load.
| | The administrator has disabled public write access.
TomH
Visitor
Re:PHP templating systems - 2006/05/30 10:19Consider alternative caching strategies... If your db content is changed as part of a backend process...then that's where to place the caching process...whenever db updates made then update cache. Public users then will always see uptodate content and those pages will all come from cached objects. If users are viewing _and_ changing content then slug the cache logic into those part of their interactions that modif the dbase. If you want content navigation specific caching then consider evaluating TonyButStrong template engine in tandem with ezSQL database handler class. TBS has excellent page caching control and combined with ezSQL's excellent query caching control they give you great flexibility in this area. There are some examples of various caching strategies/tricks using TBS/ezSQL at http://tomhenry.us/tbs3/
| | The administrator has disabled public write access.
Pete Smith
Visitor
Re:PHP templating systems - 2006/05/31 05:10We were hitting the same issue here, alot of times when people think they want a templating engine they really need a framework, like Xaraya or Drupal. If you are rolling your own app, something like Symfony is a necessity. Flexy is the best template engine there is - baked right into PEAR. I always try to utilize PEAR componentry first before trying to integrate something like Smarty.
| | The administrator has disabled public write access.
dharma
User Fresh Boarder
Posts: 2
Karma: 0
"FULL TIME OPENING IN NJ FOR PHP DEVELOPERS" - 2006/09/20 04:37Please find below the new Job description and get back to me
Title: PHP Developer Location: NJ Rate: DOE Length: Full time Industry: ANY KEY EXPERIENCE: PHP, C++
As one of our engineers based in our Jersey City, NJ headquarters your development responsibilities will span every aspect of our product line. Strong C/C++, applet based Java and/or PHP combined with MySQL or Postgres database skills will give you the development tools needed to dive into networking, low level system stack, security and authentication development projects. The successful candidate's experience should include some of the following: -Networking knowledge: TCP, UDP, RPC, routing, latency and scalability -Low Level System Stack: threads, memory, networking -Security: encryption (SSL, IPSEC), certificates, NAT traversal -Authentication: authorization technologies (LDAP, AD, Kerberos, PAM, SSO, RADIUS) -Dynamic pages templating Our dynamic environment is conducive to innovation and learning; you will push your skills to new heights and gain valuable experience in the most critical technology sector of the future. Our highly advanced embedded appliance is leading the cutting-edge world of secure remote administration of distributed environments and your technical prowess will contribute greatly to the success of our product, company and your career.