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

$compile_id

Identificador de compilación persistente. Como una alternativa para pasar el mismo compile_id a cada llamada de función, usted puede asignar este compile_id y este será usado implicitamente después.

Con el compile_id usted puede trabajar con limitacion porque usted no puede usar el mismo $compile_dir para diferentes $template_dirs. Si usted asigna distintos compile_id para cada template_dir entonces Smarty puede hacer la compilacion de los templates por cada compile_id.

Si usted tiene por ejemplo un prefilter este localiza su template (es decir: traduce al lenguaje las dependencias por partes) y lo compila, entonces usted debe usar el lenguaje actual como $compile_id y usted obtendrá un conjunto de plantillas compiladas para cada idioma que usted utilice.

otro ejemplo puede ser si usa el mismo directorio para compilar multiples dominios / multiples host virtuales.

Example 12.3. $compile_id


<?php

$smarty->compile_id = $_SERVER['SERVER_NAME'];
$smarty->compile_dir = 'path/to/shared_compile_dir';

?>

  

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 7 plus 20? (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