Get Smarty

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Check reviews of PHP Web Hosting, compatible with Smarty Templates

Name

config_load() — Carga el archivo de configuración y lo asigna al template

Descripción

void config_load(string file,
                 string section);

Esto carga el archivo de configuración de datos y lo asigna al template. Esto funciona idéntico a la función {config_load}.

Nota Técnica

A partir de Smarty 2.4.0, las variables de template asignadas son mantenidas a través de fetch() y display(). Las variables de configuración cargadas de config_load() son siempre de alcance global. Los archivos de configuracion también son compilados para execución rapida, y respetar el force_compile y compile_check de configuración.

Example 13.11. config_load()


<?php
// load config variables and assign them
$smarty->config_load('my.conf');

// load a section
$smarty->config_load('my.conf', 'foobar');
?>

   

Ver también {config_load}, get_config_vars(), clear_config(), y config variables

Comments
No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 12 plus 2? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
Cheap Hosting @HostsVault
email marketing @ActiveCampaign
broadband deals @BroadbandGenie
Best UK Web Hosting @webhost.uk.net
Reliable UK and US Web Hosting @rshosting.com
Cheap US and UK Web Hosting @infrenion.com
I.T Certification Exams @pass-guaranteed.com
Certification Practice Tests @firsttrycertify.com
Certification Practice Exam Questions @ace-it-certifications.com
Broadband Speed Test @broadbandspeed.co.uk
bulk email software @americaint.com