Page 1 of 1

smarty displaying source code on output

Posted: Fri Apr 15, 2011 1:20 pm
by mianmajidali
hi to all,
i m using Vertrigo and have a website having smarty coding, it is displaying source code of (PHP & Smarty) on webpage like following...

"assign("site_mode",1); } //Check if single user mode 1 or multi-user mode 0 if ($site_mode == 1) { $smarty->assign("single_mode",1); } if (isset($_SESSION["admin"])) { //session_write_close(); header("Location: admin/admin.php"); } elseif (isset($_SESSION["user"])) { //session_write_close(); header("Location: member.php"); } $user = ""; $pass = ""; if (isset($_POST["user"])) { if (verifyLogin($_POST["user"],$_POST["pass"])) { $_SESSION["user"] = $_POST["user"];"

i did checked tags and comments but can't find any solution, please guide me what to do ??

thanks in advance.

Re: smarty displaying source code on output

Posted: Fri Apr 15, 2011 5:15 pm
by pickle
Are there extra {literal} tags? I'd guess to check the template file for the spot right before where it starts to output. You might need to check the cached template file to see what the actual PHP is.