Real world usage of IT [template] class?

From: Date: Sat, 30 Mar 2002 15:42:30 +0000
Subject: Real world usage of IT [template] class?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1060@lists.php.net to get a copy of this message
Hi, I am considering using the IT class for the first time in an upcoming project. Can anyone give me any pointers on how to most effectively set everything up? Any caveats? I have followed the docs on http://pear.php.net/ and while it seems pretty straightforward, it would be nice to see a real-world example of how everything comes together. Finally, as the first of what will probably become many questions, what is the best way of setting up form logic so that on first view, all the text on the page is black, but if there are any errors on the submission, the same page is returned, but with the relevant fields in red text? The only way I can see how to do that would be to actually embed the style in the code that replaces the placeholder. Am I correct? Is it considered "acceptable" to embed minimal display elements in the code (such as <span class=... or <font color=...) even though that's supposed to be all contained within the template file? Thanks! -f -- Derek Fong Web Application Developer subtitle designs inc. <http://www.subtitled.com/> "Mistakes are the portals of discovery." --James Joyce >> GPG key/fingerprint available upon request <<

« previous php.pear.general (#1060) next »