Internal Server Error
what the voices in my head tell me to write
Wednesday, September 21, 2005
RTFM Dude
I have been trying to work out how to replicate our companies Java based templating system in PHP for ages without much luck.
Our system which was developed by Keith Wilson is really flexible and can basically wrap any content with skins and have different skins for the same content easilly. My current workload at ingenta is all about developing custom skins for this publishers using the system.
Being J2EE and JSTL driven its tag based. The core of the tag system is a tag that takes anything inside it and wraps it with the templating resources. Different layers of abstraction are publishing data for the page to work on and the logic of the page is all done in JSTL.
I have been scratching my head over this for quite some time. Then last night I finally decided to RTFM and got right to the end. Then I discovered Smarty plug ins! Up until now I had only really used the built in functions in Smarty and was limiting myself.
I can write Smarty tags that replicate the functions of the JSTL tags we use at work :) In fact the more I read and think about it I could make an exact replica of the work system in PHP.
Once I have that done I can then create new content for my site. I can have a play with AJAX for a start. Just the templating system will be very useful indeed though.
Permanent link and Comments posted by Rob Cornelius @ Wednesday, September 21, 2005