Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17218 программистов и 1838 роботов. Сейчас ищут 1519 программистов ...

setOption()

Вернуться к: HTML_Template_Sigma

setOption()

setOption() – Sets the option for the template class

Synopsis

require_once 'HTML/Template/Sigma.php';

mixed HTML_Template_Sigma::setOption ( string $option , mixed $value )

Sets the option for the template class. Currently it understands the following options:

preserve_data

If set to TRUE, then do not substitute variables and remove unused placeholders in data added through setVariable() and setGlobalVariable(). See also bugs #20199 and #21951. Default is FALSE, for performance reasons.

trim_on_save

Whether to trim extra whitespace from template on cache save. Generally safe to have this on, unless you have <pre></pre> in templates or want to preserve HTML indentantion. Default is TRUE

charset

Character set to use by builtin 'h' and 'e' callbacks. Default is 'iso-8859-1'. Available since release 1.2.0

Parameter

string $option

option name

mixed $value

option value

Return value

return SIGMA_OK on success, error object on failure

Throws

Possible PEAR_Error values
Error code Error message Reason Solution
SIGMA_UNKNOWN_OPTION Unknown option '$option' $option is not known to Sigma Check the option name spelling

Note

This function can not be called statically.



Вернуться к: HTML_Template_Sigma

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware