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.
|
|
|
|
|
![]() |
||
Templating System for my cms
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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. |
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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
|
|
#4
|
||||
|
||||
|
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. |
![]() |
| Tags |
| ssi, template |
| Thread Tools | |
|
|
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 |