You are here: Re: Design methodology question « PHP Programming Language « IT news, forums, messages
Re: Design methodology question

Posted by Tony Marston on 06/20/06 23:34

<msch-prv@bluewin.ch> wrote in message
news:1150832862.958605.130120@c74g2000cwc.googlegroups.com...
>I am about to embark on creating a mid-size web project that heavily
> relies on db interactions.
>
> Since most pages will contain recurring form elements (input text
> boxes, dropdown boxes, radio buttons, submit forms, tables, etc.), I am
> thinking of using blocks to insert components to each page. All
> standard elements would be instances of form element classes. Calling
> up these objects would generate customized html code.
>
> Ex: a cbo box could be instantiated in a script via:
> <p>Select Customer:</p><?php creatElement($cboName, $cboCSS, $cboVal,
> $cboOpt, ..); ?>
>
> Would such an approach be more efficient that the traditional
> line-by-line approach wrt. debugging, maintenance, etc. ? (I really
> dread mixing php and html.). While I like Smarty's templating approach,
> it seems Smarty still requires linear coding to do code translation.
>
> I visualize html pages in terms of grids where cells could be filled up
> by html block components. Is this approach somewhat too fancy?
>
> Thanks for any insights,
>
> Mark

I create all my HTML through XSL stylesheets which makes building web pages
very easy. All my PHP code has to do is create an XML document with all the
data, and each data field contains instructions on which HTML control is
required for that field. This means that I spend less time in coding screen
layouts and more time in dealing with the important stuff, the business
rules.

Check out the sample application at
http://www.tonymarston.net/php-mysql/sample-application.html

--
Tony Marston

http://www.tonymarston.net
http://www.radicore.org

 

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

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