Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Store evaluated code in a variable

Status
Not open for further replies.

olivetreetech

Programmer
Dec 15, 2004
8
US
Is it possible to store evaluated / compiled code in a variable?

I'm using the phpBB built-in function assign_var_from_handle as follows:
Code:
$thisPoll = $template->assign_var_from_handle_new('TOPIC_POLL', 'pollbox');

Still in the loop I then do the following:
Code:
$template->assign_block_vars('topicrow', array(
			'ROW_COLOR' => $row_color,
			'ROW_CLASS' => $row_class,
			'FORUM_ID' => $forum_id,
			'TOPIC_ID' => $topic_id,
			'TOPIC_POLL' => $thisPoll));

This way I can access each topicrow and get the corresponding data. But when doing the above I only get "1" returned when it should be a large section of data for each row.

Any help / direction is greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top