PHP Classes

Thats a good class :-) But why you dont use templates, with b...

Recommend this page to a friend!

      Easy HTML Class  >  All threads  >  Thats a good class :-) But why you...  >  (Un) Subscribe thread alerts  
Subject:Thats a good class :-) But why you...
Summary:Package rating comment
Messages:2
Author:José Filipe Lopes Santos
Date:2014-03-10 17:59:17
Update:2014-03-10 18:36:51
 

 

José Filipe Lopes Santos rated this package as follows:

Utility: Good
Consistency: Good
Examples: Good

  1. Thats a good class :-) But why you...   Reply   Report abuse  
Picture of José Filipe Lopes Santos 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 ?

  2. Re: Thats a good class :-) But why you...   Reply   Report abuse  
Picture of Fauzi Gomez Fauzi Gomez - 2014-03-10 18:36:51 - In reply to message 1 from José Filipe Lopes Santos
Hi José.

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.