On Feb 5, 2011, at 11:19 AM, Ashley Sheridan wrote:
On Sat, 2011-02-05 at 11:11 -0500, li...@pruimphotography.com wrote:
I have a design question... No it's not about the interior of my
house... although I could use some help with that as well...
I am working on a framework for my own use (And maybe one day will
beat out the popular frameworks! Hey I can dream right? :)) and to
increase my knowledge.
Here's my current index page:
DJ_head("Double J FrameWork", $cfgCss, $cfgMeta);
DJ_footer("copywrite", "Double J Web Design");
It all works perfectly but I'm starting to question having a bunch of
function calls like that or should I simply have a big master
or should I have my framework create the html files? Has anyone gone
down this road before? any pitfalls I should watch out for that
in google yet? :)
I guess it all depends on what you need. A little while back there
discussion on the list about whether or not to leave all content
or have the PHP CMS create the various .html pages required. There are
pros and cons to each method.
I'll definitely be looking that thread up! I got a little behind in my
reading and must have missed it.
As for the various calls vs a single call to display the page, that
depends on how you will be using it. Personally, I'd prefer using one
call to something like your call to DJ_displayPage() which itself can
accept various parameters or an array of parameters that then makes
more individual calls to the other functions. Anything to reduce
while still being maintainable is never a bad thing in my book, unless
it becomes a crazy long list of chained calls!
That last sentence is the kicker... That's where it gets hard hehe.
When is too much too much? And I am guessing that is a decision that
only I as the programmer can make... At least until someone uses my
framework and complains about it! :)
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php