KLEINPHP library with Smarty template engine