HI

 

I had similar client before, they wanted the site in short time, so what it did 
was

 

structure:

 

pages/ 

- holds all pages content.

- with each directory one XML config file

    - page title

    - meta data

    - template to use for current page.

    - blocks to be used on pages

 

skins/

- holds css/js and templates.

 

Library/

- simple classes to process pages

 

example:

url: domain.co.nz/what-we-do/softwares

 

pages/what-we-do.php    ----- page content

pages/where-we-are.php

pages/config.xml             ------ have configuration details for 
what-we-do.php and where-we-are.php and any other one in this level

pages/what-we-do/softwares.php 

pages/what-we-do/config.xml
 

hope this helps

 

Mohammed Alsharaf

http://www.safitech.com

 


Date: Wed, 2 Sep 2009 11:36:32 +1200
From: [email protected]
To: [email protected]
Subject: [phpug] Simple templating framework?

Does anyone here know of any good simple PHP templating frameworks?  I get 
given sites to update/extend/maintain that are just made of alot of static HTML 
and I'm not a fan of having to go through every page to make one change, but 
the clients are sure they don't want a CMS.  So I want to find some kind of 
simple framework for these kinds of sites that can handle site-wide templates 
but also make it easy to set page titles, current menu items, page-specific 
CSS/JS etc.

I know I can just do

$pageTitle = 'about us';
include('includes/header.php');
<p>
    Content here!
</p>

but it can get messy with nested subpages and whatnot so I was if there's 
something somewhere between this and a CMS..?


Nathan



_________________________________________________________________
Find a way to cure that travel bug MSN NZ Travel
http://travel.msn.co.nz/
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to