WikiDragonfly Themes ⇒ Assigning variable to theme templates  

Glossary
The Project
Install
Dragonfly admin interface
Dragonfly public view
Dragonfly Themes
Build local server
Running Dragonfly CVS
Tips and Tricks
Rules & Regulations
v9 Developer's Manual
v10 Developer's manual
6.4: Assigning variable to theme templates Parent

The module assigns variables to an array that is assigned to the template class.

$cpgtpl->assign_block_vars('newsempty', array(
'S_NOTOPIC' => _NOINFO4TOPIC,
'S_GONEWS' => _GOTONEWSINDEX,
'S_SELECT' => _SELECTNEWTOPIC,
'S_SITENAME' => $sitename,
'U_NEWSINDEX' => getlink('News'),
'U_TOPICS' => getlink('Topics')
)

Then the template is used by the module to write the page.

$cpgtpl->set_filenames(array('body' => 'news/index.html'));
$cpgtpl->display('body');

 
Updated: Wednesday, September 07, 2005 (16:00:10) by tuta
Created:  Tuesday, September 06, 2005 (04:59:53) by akamu

stopsoftwarepatents.eu petition banner

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.2809 seconds with 15 DB Queries in 0.0869 seconds
Memory Usage: 1.47 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy