Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules

Search

Donate to XOOPS!

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Git Google GUI hacks instant-zero jQuery module mygalleries news Nordic Olédrion oxygen PageRank PHP rmcommon security SEO simple-XOOPS Smarty sport tag Theme tutorial wiki xoops XoopsEngine ZendFramework

Top Tags

module (1) rmcommon (1)

New Users

Registering user

# 133032

lsfx2000

Welcome to XOOPS!
[Main Page]

DevWiki ConstantsInTemplates

From XOOPS Web Application System

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: DevWiki

DevWiki Index

Constants in Templates

A few posts I've made today made me thought that some funcs aren't worth anything if people don't know about them. So this one may be useful to some of you (I haven't seen this used until now).

All PHP defined constants are directly accessible in smarty templates, by using:

<{$smarty.const.DEFINENAME}>

So no need to assign them manually, as some core modules do.

Skalpa

DevWiki Index

Retrieved from "http://xoops.org/modules/mediawiki/index.php/DevWiki_ConstantsInTemplates"

This page has been accessed 3,279 times. This page was last modified 22:22, 9 April 2010. Content is available under XOOPS Web Application System.