The threads probably getting old ... but just in case anyone else is following this, Larry's example is almost perfect. Simply modify<br><br>function phptemplate_foo_or_something() {<br><br>to<br><br>function phptemplate_foo_or_something($data) {
<br><br>Then everything will work. Thanks for the help David and Larry.<br><br><div><span class="gmail_quote">On 4/10/07, <b class="gmail_sendername">Larry Garfield</b> <<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>#################################################<br>module code -
mymod.php<br>#################################################<br><br>function mymod_foo() {<br> $data = array('foo' => 'bar');<br> return theme('foo_or_something', $data);<br>}<br><br>function theme_foo_or_someting($data) {
<br> return "something you do with $data that generates a string";<br>}<br><br>#################################################<br>template.php code<br>#################################################<br><br>
function phptemplate_foo_or_something() {<br> return _phptemplate_callback('foo_or_something', $data);<br>}<br><br><br>#################################################<br>foo_or_something.tpl.php<br>#################################################
<br><br><h1>I want to output value of $foo here</h1><br><br>(In this case $foo will have a value of 'bar').<br><br>Cheers.<br><br>--Larry Garfield<br><br></blockquote></div>