Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 14, 2009, 3:55 pm
rate this thread
I've been wondering if there is a design pattern reference for front-
end development coding....
There has been a discussion @work about how to code it... the options
Every web document (as "index.php", "products.php" and so on) should
be coded as one function which organizes which css , js , footer,
header files should be called. So the index.php would look like this:
<?php ShowContent($_POST, $_GET, 1) /*1 = idPage for index.php*/ ?>
Every web development has a mixed up html/php code, but the php calls
are minimum... so the index.php would look like this:
/* content variables load here*/
$tittle = getTittle();
$productDetails = getDetails();
<h1> Product Details </h1>
Going smarty (and alike) way.
What do you think?
- » Efficiency questions: combined ifs and looping 4 times
- — Previous thread in » PHP Scripting Forum