12-18-2007, 07:42 PM
|
#4 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
|
Not sure if I understand you 100%, so apologies in advance.
I use Smarty. I have the PHP seperate from the HTML, so skinning would be easy, you wouldn't have to touch the server-side stuff.
In PHP, you'd have:
php Code:
$smarty->assign('name', $username);
and in the HMTL file:
Which output's the variable $username
Some people consider using Smarty as having to learn a new way of coding, but it's far from that [in my opinion]. For example, the equivalent of an if statement in Smarty is:
html Code:
<!-- GT is an equivalent of '>' -->
{if $x gt $y}
X
{else}
Y
{/if}
Smarty PHP
__________________
Not quite a n00b...
|
|
|
|