Hello,
I’m writing module and I have one problem. I don’t know how to fetch template in my module. I don’t want to use {embed} tag in main template. But I want to embed template via PHP.
Example: - my main template
{exp:my_module:auto_embed}And in PHP I want to:
function auto_embed(){
// here I want to embed/include other template based on
// variables that I will include to this function
}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.