Re: [Phphtmllib-devel] Usability issues
Status: Beta
Brought to you by:
hemna
|
From: David M. <da...@re...> - 2002-06-07 00:38:37
|
On Fri, 2002-06-07 at 05:34, Walter A. Boring IV wrote: > But one of the nice things about some of > the html_* functions is the api of params for most common things. > Such as the html_a() function which has the params of > > function html_a($url, $content, $class=NULL, $target=NULL); I didn't see any mention of the html_* functions in the doco. RTFS time I guess :) One of the best things about phpHtmlLib in general is that it eliminates that annoying issue of having to 'close' tags. It's amazing how much debugging time I've wasted looking at statements like "echo '</table\n'" and asking 'which bloody nested table have I closed here?!?'. Anyway, I'll put my API design skills to the test and see if I can cook up a wrapper that makes for ergonomic programming. For example, if one wants TD cells to have a given font size, one has to embed a FONT tag in each cell, which tends to mess up the code. (I commented out the 'FONT is deprecated' warning in the lib, and I haven't found anything in phpHtmlLib for CSS). I'll have a go at addressing this. Cheers David |