You are here: Re: my HTML header - any feedback? « HTML « IT news, forums, messages
Re: my HTML header - any feedback?

Posted by Jerry Stuckle on 10/14/74 12:00

Mike Placentra II wrote:
> On Jan 16, 3:16 pm, dittonamed <dittona...@gmail.com> wrote:
>> I will be building a "template" from this to be included in each page
>> of a PHP/JS/HTML project i'm starting soon, but I'm curious what other
>> connoisseurs might think of my layout. Hmm like throwing the GET/POST
>> processing between the <head> and <body> tags is a new idea, but it
>> seems logical. Any caveats or anything watch out for?
>>
>> Any thoughts?
>>
>> Cheers!
>
> There's no advantage to processing in the middle of the output. It
> makes more sense not to separate your code into header and processing
> blocks. All processing should usually be done before any output so you
> don't end up with spaghetti code.
>

Sure there is. It keeps the processing right where the results are
being used. No more spaghetti code than doing everything up front.

> You may want to look at the Model-View-Controller (Model2 for web)
> design pattern, and maybe check out some frameworks such as Code
> Igniter or Zend Framework. It should then be clear that processing is
> best done before any output.
>

Not necessarily. And the MVC pattern doesn't necessarily require
processing be done all at the beginning.

> Good luck,
> -Michael Placentra II | PHP5 ZCE
>


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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