MyBB Community Forums

Full Version: Plugin Template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi

i want to take template through eval(); this template exist in global themes so i just want from my plugin function where i write
function a()$page{
$page = "<b>test</b>"
return $page;
}
i want to fetch template from database throught plugin example
i had create template in global themes after i created it i want to use it throught plugin function

thanks
function foo()
{
	global $templates;

	eval('$foo = "'.$templates->get('foo').'";');

	echo $foo;
}
thanks you for reply
was helpful thanks