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]

Dev:Constants in Templates

From XOOPS Web Application System

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

Printable version | Disclaimers | Privacy policy
Category: Development

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.

Back to the dev:Main Page

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

This page has been accessed 2,620 times. This page was last modified 01:57, 16 December 2007. Content is available under XOOPS Web Application System.