ChrisTERiS Posted May 10, 2017 Share Posted May 10, 2017 Hello, I'm trying to open a simple modal window but seems that something is going wrong as I'm getting a full page inside there. When I want to display a page in client area I'm using: $ca = new ClientArea(); $ca->initPage(); $ca->assign("profile", $profile); // Define the template filename to be used without the .tpl extension $ca->setTemplate('demopage'); // Render Template $ca->output(); But what if I want to show a form without page's header, footer etc? What code do I need to use? I tried to remove $ca->initPage(); but I'm getting error. Thank you 0 Quote Link to comment Share on other sites More sharing options...
ChrisTERiS Posted May 10, 2017 Author Share Posted May 10, 2017 Temporary I bypass this issue using: // Load Template Engine require_once('./vendor/smarty/smarty/libs/Smarty.class.php'); // Prepare Template $smarty = new Smarty(); $smarty->assign("profile",$profile); // I'm getting the active template with query $smarty->display('templates/'.$rlt_template["value"].'/socialblog_author.tpl'); but I'll wait to see if someone can tell me the official way to do it. Thank you 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.