Today we successfully pulled a template stored in a mysql database, ran it through Smarty and printed it to the screen in a browser. This method is more useful because it doesn't require the template to ever become a physical file. This was accomplished in two distinctly different ways. First we created a resource document in Smartys plugins directory then called it from our php script. Second we created the needed functions and registered the resource inline in our php script. The second way shows more promise of flexibility and ease of use because we can easily construct the query on the fly. This is a foundational piece of getting Smarty to yak with FishCart. There are definately more miles to trudge, however this is exciting.
Posted by Ben at December 10, 2003 05:22 PM