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

Convenzioni per i nomi

I file e le funzioni dei plugin devono seguire delle convenzioni molto specifiche per i loro nomi, per poter essere trovati da Smarty.

I file dei plugin devono essere chiamati come segue:

tipo.nome.php

Dove tipo è uno di questi tipi di plugin:

  • function
  • modifier
  • block
  • compiler
  • prefilter
  • postfilter
  • outputfilter
  • resource
  • insert

E nome deve essere un identificatore valido (solo lettere, numeri e underscore).

Alcuni esempi: function.html_select_date.php, resource.db.php, modifier.spacify.php.

Le funzioni plugin all'interno dei file dei plugin devono essere chiamate come segue:

smarty_tipo, _nome

Il significato di tipo e nome sono gli stessi visti prima.

Smarty produrrà i messaggi di errore appropriati se il file del plugin di cui ha bisogno non viene trovato, o se il file o la funzione hanno un nome non appropriato.

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 6 plus 3? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
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
ASP.NET hosting @aspnethosting.co.uk