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.
smarty displaying source code on output
Moderator: General Moderators
-
mianmajidali
- Forum Commoner
- Posts: 30
- Joined: Tue Dec 01, 2009 8:05 pm
Re: smarty displaying source code on output
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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.