You are here: Re: Embedding the entire HTML within PHP « All PHP « IT news, forums, messages
Re: Embedding the entire HTML within PHP

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация