|
Posted by Drakazz on 05/18/06 09:07
This code doesn't look any cleaner, to me.
None of my new site scripts have html embeded in them, how's that?
for example, a bit of code:
elseif ( $site->rget['0'] === "activate" && isset($site->rget['1']) &&
ctype_alnum($site->rget['1']) ) {
$activation = new Activation($site->rget['1']);
logit();
if ( $activation->valid(&$site) === true ) {
$site->setView("activation.successful");
}
else {
$site->setView("activation.error");
}
}
which is then passing variables to the $site and then the Smarty
template engine is being used to parse the output, which has embeded
HTMl in PHP, but it's automatically generated and saves time from
miximg HTMl with PHP, so your PHP scripts or HTML don't have to cry
when you need to make any changed.
And what's with the usage of <?= ?> and <? ?> ?! These are depreccated
now and wouldn't work with normal PHP compiles.
Always use <?php ?> !!!
Navigation:
[Reply to this message]
|