[FX.php List] Just Curious

Dennis Crall dennis-crall at uiowa.edu
Thu Jul 20 12:46:59 MDT 2006


I also use Smarty and find it to be a great tool. My general strategy for
FX/Smarty sites involves a set of classes built on top of FX to make FX
queries and result sets more palatable. Instead of iterating over FX's
multidimensional array, results are returned as objects that look a lot like
a record in the database. These results are then pushed into Smarty
templates. This approach generally keeps my script logic and display logic
separate, so I only need to worry about breaking either one or the other at
any given moment.

This approach isn't perfect. It requires a fair amount of set up at the
beginning of a project, which can at times be frustrating. For example, if I
have a Customer table, I have to define a Customer class in php. I'd like to
re-write my classes for PHP5 such that the result objects are built
dynamically as defined by the FX result set instead of an actual class file.
I'm doing something similar in ActionScript already, and it works well.


Denny Crall
ITS-Academic Technologies
The University of Iowa
http://at.its.uiowa.edu


On 7/20/06 1:21 PM, "DC" <dan.cynosure at dbmscan.com> wrote:

> so you're using smarty... would you mind sharing your thoughts on why? i
> use smarty and i'd like to hear how another FX.php developer uses it.
> 
> thanks!
> dan
> 
> John Phillip Barclay had written:
> 
>> Templating Languages: XSLT -> smarty templates
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list