Connecting Tech Pros Worldwide Help | Site Map

Question of PHP strategizerating

Alexander Ross
Guest
 
Posts: n/a
#1: Jul 16 '05
I've made several sites using PHP but they generally didn't have any
exciting layout to worry about. I've also made plenty of static sites using
Dreamweaver and complicated layout tables. Now I'm making a PHP site with a
complex layout tables and graphics going on, so I need some opinions on
stratagy:

How do you (and I realize this is practically a religous question) normally
handle dynamic content buried in various tables while:
1) not repeating code (php or html) over and over in the various pages
2) keeping the layout tables from becoming scattered over various includes
and functions so that you can no longer figure out what the hell is going on

Thanks for your thoughts
Alex


Jochen Daum
Guest
 
Posts: n/a
#2: Jul 16 '05

re: Question of PHP strategizerating


Hi Alexander!

On Tue, 15 Jul 2003 02:06:52 GMT, "Alexander Ross"
<alexross@bleen.net> wrote:
[color=blue]
>I've made several sites using PHP but they generally didn't have any
>exciting layout to worry about. I've also made plenty of static sites using
>Dreamweaver and complicated layout tables. Now I'm making a PHP site with a
>complex layout tables and graphics going on, so I need some opinions on
>stratagy:
>
>How do you (and I realize this is practically a religous question)[/color]
Yes, see the templates discussion some weeks ago.[color=blue]
>normally
>handle dynamic content buried in various tables while:
>1) not repeating code (php or html) over and over in the various pages[/color]

Use a template system (Smarty, PatTemplate, TemplateTamer etc), or
organise your code with a top-bit that contains all calculations and a
bottom bit that only goes <?=$var1;?> ... <?=$var2;?> etc in various
places.
[color=blue]
>2) keeping the layout tables from becoming scattered over various includes
>and functions so that you can no longer figure out what the hell is going on[/color]

Centralize all includes into one file and or put it only on top of the
file. Have only functions in includes.
[color=blue]
>
>Thanks for your thoughts[/color]

Your welcome,

HTH,

Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Closed Thread