Archive for August 2006

HTML_Template_IT 1.2.1 stable released

Well, no bugs were submitted and real application tests (thanks to thorsten) as well as unit tests were passed so we released HTML_Template_IT 1.2.1 stable today. 1.2.1 stable is exactly the same as 1.2.0 beta, but marked as stable.
You can install HTML_Template_IT by using the following command:

# pear install HTML_Template_IT
or upgrade it using

# pear …

HTML_Template_IT 1.2.0 beta released

Today we released the 1.2.0 beta of HTML_Template_IT.
As I mentioned, an option was added to HTML_Template_ITX::setCallbackFunction() to determine if call_user_func or call_user_func_array is used to call the callback function.
Example:
function _numberFormatCallback($float, $decimals) {
return number_format($float, $decimals);
}

$tpl = new HTML_Template_ITX();
$tpl->setTemplate(‘callback:func_numberFormat(1.5, 2)’);
$tpl->setCallbackFunction(‘numberFormat’, ‘_numberFormatCallback’, ”, true);
$tpl->performCallback();
$tpl->show();
// prints “callback:1.50″

Look a the line:

$tpl->setCallbackFunction(‘numberFormat’, ‘_numberFormatCallback’, ”, …

A few words about charsets, font, collation.

Just as a bookmark:Kristian Köhntopp has written a informative blog entry about the MySQL 4.1 collation support showing how to handle different encodings of characters (german language).

increment

inc %age