Hi,
In my plugin, I want to render some EE code and then return that as tagdata.
For example:
class My_plugin
{
public My_plugin()
{
$this->return_data = "{exp:weblog:entries}{title}{/exp:weblog:entries}";
}
}
Obvously I need to use the Template class. I’ve tried numerous ways of getting this to work but need to know how to inject code into the current template being parsed and then restart the parsing process. I’ve been trying to reuse simliar code that is used in the Template class to handle nested plugins but can’t seem to get it to work. I can parse var_singles, var_pairs, var_conditionals, and global variables but cannot get class_handler() stuff to work.
Any help would be much appreciated.
Cheers, Mike
Moved to Plugins: Technical Assistance by Moderator
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.