Developer's Manual  Function Reference  Working with SiteSupra variables  setSupraIni

setSupraIni

Changes value of specified SiteSupra parameter.


void setSupraIni
(string section_name , string parameter_name [, mixed default_value]]])

Use the function to set the value of any parameter of $suCONF or $suEDIT arrays. Assign 'CONF' to section_name to refer to $suCONF array or 'EDIT' to refer to $suEDIT. parameter_name is the name of exsting element of one of those arrays. The new assigned value will stay in force for the currently loaded page only. If you reload the page or go to another page, a parameter will restore its original value.

Example
The below example changes baseTitle parameter and therefore changes the browser's title text.

<?
setSupraIni
('CONF', 'baseTitle', 'Example: ');
?>
Please login to add comments.