ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  The Dynamic Duo of PEAR::DB and Smarty
Subject:   Question about HTML structure
Date:   2003-09-17 02:42:37
From:   anonymous2
Hi !


I see this portion of code as a problem maybe :


<html><head>
{if $title != ""}
<title>website name - {$title}</title>
{else}
<title>website name - slogan goes here</title>
{/if}
</head><body>


Why hiding the <title> in the loop ? that will cause uncomprehension to a html editor, no ?
Could we have stuff like


<title>website name -
{if $title != ""}
{$title}
{else}
slogan goes here
{/if}
</title>


I would have done like this, but maybe I'm wrong, as I just start on Templates.


Thanks anyway for the good article


Alain (chri01@hotmail.com)