smarty displaying source code on output

Discussion for various published PHP frameworks, including Zend Framework, CodeIgniter, Kohana, CakePHP, Yii, Symfony, and others.

Moderator: General Moderators

Post Reply
mianmajidali
Forum Commoner
Posts: 30
Joined: Tue Dec 01, 2009 8:05 pm

smarty displaying source code on output

Post 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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: smarty displaying source code on output

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply