[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] Prefered method of setting up a site
From:       "erkin tek" <gemeyilim () gmail ! com>
Date:       2006-06-25 23:38:49
Message-ID: a662e1bb0606251638q3203e112yad459232e729b377 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

Use includes, and YOUR THEMPLATE.PHP
i made fotograf.web.tr consisting of four parts.
every page have to show inner part
inner part is in $innerPart also an identifier $page
then i include template.php

which calls top, left, right, and bottom then we have page.
When ever ý change top of course every page updates. Also in order to
identify contents differantiate with pages, (for example left menu) I use
$page.

I recommend you not to use a template engine. Cause every system have
special requiredments. You need to learn them first. Make your own.


On 6/25/06, Nico Meijer <lists@familiemeijer.org> wrote:
>
> Hi Børge,
>
> > Does anyone have a opinion or a pro/con list on how to set up a site
> > with many pages?
>
> Drive the site with templates and a database.
>
> > I up till recently used the normal method with index.php page1.php
> > page2.php page3.php ish kind of way.
> > this gave me after some... thousands of upgrade... thousand of new
> > files to include, just as many CSS files quite a few headerfiles, so on!
>
> Been there, done that, hated it. ;-)
>
> > However a newer design of stuff leaves me with one index.php, one css
> > file, and then no header/footer since the index file keeps track of
> > everything needed in all files. Else the needed stuff is included in
> > the apropriate file. index.php?otherpage=someother.
>
> I've almost completely switched to Smarty[1]. Let php do the math, hand
> the data over to Smarty and let the templates do the layout.
>
> Quanta's project templates folder is wonderful in this regard, as I like
> to keep all Smarty related stuff outside the webroot, but the templates
> are only a click away.
>
> Packt publishing[2] has a book out on Smarty. It's on my shelf, but I've
> yet to read it. These days, there's only 16 hours to a day or so it
> seems...
>
> [1] http://smarty.php.net/
> [2] http://www.packtpub.com/
>
> HTH... Nico
> _______________________________________________
> Quanta mailing list
> Quanta@mail.kde.org
> https://mail.kde.org/mailman/listinfo/quanta
>



-- 
www.fotograf.web.tr

[Attachment #5 (text/html)]

Use includes, and YOUR THEMPLATE.PHP<br>i made <a \
href="http://fotograf.web.tr">fotograf.web.tr</a> consisting of four parts.<br>every \
page have to show inner part <br>inner part is in $innerPart also an identifier \
$page<br> then i include template.php<br><br>which calls top, left, right, and bottom \
then we have page.<br>When ever ý change top of course every page updates. Also in \
order to identify contents differantiate with pages, (for example left menu) I use \
$page. <br><br>I recommend you not to use a template engine. Cause every system have \
special requiredments. You need to learn them first. Make your \
own.<br><br><br><div><span class="gmail_quote">On 6/25/06, <b \
class="gmail_sendername"> Nico Meijer</b> &lt;<a \
href="mailto:lists@familiemeijer.org">lists@familiemeijer.org</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi Børge,<br><br>&gt; Does \
anyone have a opinion or a pro/con list on how to set up a site<br>&gt; with many \
pages?<br><br>Drive the site with templates and a database.<br><br>&gt; I up till \
recently used the normal method with  index.php page1.php<br>&gt; page2.php page3.php \
ish kind of way.<br>&gt; this gave me after some... thousands of upgrade... thousand \
of new<br>&gt; files to include, just as many CSS files quite a few headerfiles, so \
on!<br> <br>Been there, done that, hated it. ;-)<br><br>&gt; However a newer design \
of stuff leaves me with one index.php, one css<br>&gt; file, and then no \
header/footer since the index file keeps track of<br>&gt; everything needed in all \
files. Else the needed stuff is included in <br>&gt; the apropriate file. \
index.php?otherpage=someother.<br><br>I've almost completely switched to Smarty[1]. \
Let php do the math, hand<br>the data over to Smarty and let the templates do the \
layout.<br><br>Quanta's project templates folder is wonderful in this regard, as I \
like <br>to keep all Smarty related stuff outside the webroot, but the \
templates<br>are only a click away.<br><br>Packt publishing[2] has a book out on \
Smarty. It's on my shelf, but I've<br>yet to read it. These days, there's only 16 \
hours to a day or so it <br>seems...<br><br>[1] <a \
href="http://smarty.php.net/">http://smarty.php.net/</a><br>[2] <a \
href="http://www.packtpub.com/">http://www.packtpub.com/</a><br><br>HTH... \
Nico<br>_______________________________________________ <br>Quanta mailing list<br><a \
href="mailto:Quanta@mail.kde.org">Quanta@mail.kde.org</a><br><a \
href="https://mail.kde.org/mailman/listinfo/quanta">https://mail.kde.org/mailman/listinfo/quanta</a><br></blockquote></div><br>
 <br clear="all"><br>-- <br><a \
href="http://www.fotograf.web.tr">www.fotograf.web.tr</a>



_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic