Templating System for my cms

This is a discussion on "Templating System for my cms" within the PHP Forum section. This forum, and the thread "Templating System for my cms are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 31st, 2006, 14:29
Reputable Member
Join Date: May 2006
Location: Scotland
Age: 18
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Templating System for my cms

I am currently creating a big cms for my site so it is completely done through php and added through a panel. At the moment all my pages are in the format written with all the html then the included php file. This way when I update something in the design I have to change every single php file. How would I make it so the changes went through? Also a link to a tutorial on the subject would be appreciated. I have php files like news archive, article, tutorial archives and want them to have the same design around them without changing the php files.

I previously was using a dreamweaver template system which I suppose in theory would work but I am looking for a different solution.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 31st, 2006, 16:01
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Templating System for my cms

Go to the css forum 'sticky' and download the 'Templates' tutorial and have a look at that.

If I understand you correctly, this will give you a basis on which to work.

You can always come back and ask specific questions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 31st, 2006, 17:40
Reputable Member
Join Date: May 2006
Location: Scotland
Age: 18
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Templating System for my cms

Thanks I can just make above and below.inc and include them above and below the php file as they are all in the same place. Or break each php part in a .inc
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 4th, 2007, 12:24
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Templating System for my cms

Includes are great. Another way of accomplishing single-source php is OOP. The basics of OOP are pretty easy -- you can start making and using classes after about an hour of reading and practice.

I will say, in my experience, OOP is unnecessary for a single-writer site. But it's nice to know how to use it, which means using it a couple of times.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
ssi, template

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reliable and secure php templating system HitByLife PHP Forum 17 Oct 24th, 2007 18:37
How to set up a buying system robukni Website Planning 10 May 8th, 2007 22:52


All times are GMT. The time now is 15:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42