doubledee Posted April 21, 2011 Share Posted April 21, 2011 What is the best way to break up repeating code? Make each page from a standard template (e.g. Header, Columns, Footer) and include the variable content using PHP?? Or make each page a stripped down PHP page which creates the variable content and then Includes the static parts (e.g. Header, Columns, Footer)?? Hope you follow me?! :-/ Debbie Quote Link to comment https://forums.phpfreaks.com/topic/234302-need-help-breaking-up-code/ Share on other sites More sharing options...
maxudaskin Posted April 21, 2011 Share Posted April 21, 2011 Take a look at this. Quote Link to comment https://forums.phpfreaks.com/topic/234302-need-help-breaking-up-code/#findComment-1204298 Share on other sites More sharing options...
doubledee Posted April 21, 2011 Author Share Posted April 21, 2011 Take a look at this. Thanks, but too hard to read with all the ads and > jazz?! Debbie Quote Link to comment https://forums.phpfreaks.com/topic/234302-need-help-breaking-up-code/#findComment-1204304 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.