|Subject:||Thats a good class :-) But why you...|
|Summary:||Package rating comment|
|Author:||Josť Filipe Lopes Santos|
Josť Filipe Lopes Santos rated this package as follows:
Josť Filipe Lopes Santos - 2014-03-10 17:59:17
Thats a good class :-)
But why you dont use templates, with by example template_phplib package of the PEAR ?
Fauzi Gomez - 2014-03-10 18:36:51 - In reply to message 1 from Josť Filipe Lopes Santos
Well first of all thanks for the comment.
You know, I did not thought about it at any point of the developing.
I just was developing a lot of UI for several reasons and I started to get sick of mixing HTML in PHP files so I started to create functions to avoid that, and you have a good point, but I was thinking in using the functions with JSON arguments, in that case I could create standards in JSON files, it actually work with JSONs, just have to rename the functions (I mean for example divFromArray it should be divFromObject).
The functions without the "FromArray" are the first Ones, I really stop using them, I do not like too much calling a function funtionSomething(arg1, arg2, arg3, arg4, arg5 ....) I just prefer to create an array or an object and send one argument, but of course you can use template.
This class just fits on my developments needs at this moment, and reflects how my head was thinking :P .
Thanks again, best Regards.