Re: [PHP] Templating solutions?

2001-12-29 Thread David Jackson

Woops -- first link is to the site for PHPFastTemplate.

> Lauri --
> You might want to take a look at: http://www.thewebmasters.net/php/
> there's a tutorial located here: 
> http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/page1.html
> 
> -- David
>> Hi there!
>> 
>> During the last two weeks or so, I've been bugged by a question deep
>> inside me. It's about various templating solutions used with dynamic
>> web applications.
>> 
>> Oftentimes simply embedding the code into the HTML template does the
>> trick. Othertimes the
>> include("header.inc");and
>> include("footer.inc"); works its magic.
>> 
>> There are, however, also moments when such approaches aren't enough
>> and something else is required.
>> 
>> What does one do when the templates of most pages within one site
>> differ in look and feel? One possibility would be to specify a
>> template, load it into a variable and replace certain marked spots (a
>> la "") with the dynamically created code/text using
>> eregi_replace() or something similar.
>> 
>> What are the templating solutions available? Pros and cons?
>> 
>> How do you solve your templating?
>> 
>> Yours,
>> Lauri
>> --
>> Tharapita Creations
>> [dynamic web applications]
>> [EMAIL PROTECTED]
>> Mobile: +372 53 410 610
>> 
>> 
>> -- 
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail:
>> [EMAIL PROTECTED]
> 
> 
> -- 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]


-- 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Templating solutions?

2001-12-29 Thread David Jackson

Lauri --
You might want to take a look at: http://www.thewebmasters.net/php/
there's a tutorial located here: 
http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/page1.html

-- David
> Hi there!
> 
> During the last two weeks or so, I've been bugged by a question deep
> inside me. It's about various templating solutions used with dynamic
> web applications.
> 
> Oftentimes simply embedding the code into the HTML template does the
> trick. Othertimes the
> include("header.inc");and
> include("footer.inc"); works its magic.
> 
> There are, however, also moments when such approaches aren't enough and
> something else is required.
> 
> What does one do when the templates of most pages within one site
> differ in look and feel? One possibility would be to specify a
> template, load it into a variable and replace certain marked spots (a
> la "") with the dynamically created code/text using
> eregi_replace() or something similar.
> 
> What are the templating solutions available? Pros and cons?
> 
> How do you solve your templating?
> 
> Yours,
> Lauri
> --
> Tharapita Creations
> [dynamic web applications]
> [EMAIL PROTECTED]
> Mobile: +372 53 410 610
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]


-- 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Templating solutions?

2001-12-29 Thread Bogdan Stancescu

A great solution for this kind of job is Midgard (www.midgard-project.org). It
provides heaps of features oriented to solving all your possible problems -- user
control/access; separate content and "style" templates, manages includes
automatically so you don't have to fiddle around tens or hundreds of files in order
to add the new php you want to include.

So, on the pro side there's much about everything you may wish.

On the con side, however, is that if you ever wish to export a site to a server
without Midgard you'll have a very hard time doing it because everything that was
done automatically by Midgard must be done manually in order to create the php files
comprising the site (had this experience recently, and it's a real pain).

However, these events are usually forseen, so if you have your own server you don't
need to worry about this problem.

HTH

Bogdan

Lauri Vain wrote:

> Hi there!
>
> During the last two weeks or so, I've been bugged by a question deep inside me.
> It's about various templating solutions used with dynamic web applications.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]