Chuck Trukk
unread,Nov 17, 2009, 2:20:36 PM11/17/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to H2o template PHP
I am using this in the modx cms. Thought I'd share a tip.
Sometimes I want the Tag to output the content directly.
To do this, you can:
function render($context, $stream) {
$method = str_replace(":", '', $this->args[0]['api']);
$var = str_replace(":", '', $this->args[0]['name']);
$output = $this->modx->$method($var);
$context->set('test', $output);
$stream->write($output);
}