PHP: TemplatesPHP templates and which type to use?
Page 1 of 1
14 Replies - 2890 Views - Last Post: 26 August 2001 - 02:51 PM
#1
PHP: Templates
Posted 17 August 2001 - 07:56 AM
I have been reading the templates articles at http://www.phpbuilder.com/columns/ but none of these suit what I want but they are closer.
I have would like to know all the different template classes you get and some links.
I would like my site to be able to:
- Include php in the main template page
- Include php (using <? php )in the main content of the pages
- Be able to use " ' and without annoying escape sequences
- Fairly easy to configure
If anybody knows a template that will do all these would you please tell me that would be GREAT.
Thanks you very much in advance.
-Quizical.
Replies To: PHP: Templates
#2
Re: PHP: Templates
Posted 17 August 2001 - 07:01 PM
#3
Re: PHP: Templates
Posted 18 August 2001 - 04:53 AM
Althought if I am using a premade template I can almost always configure scripts from code that is already provided.
#4
Re: PHP: Templates
Posted 18 August 2001 - 11:06 AM
#5
Re: PHP: Templates
Posted 19 August 2001 - 03:16 AM
I know I could customize it a bit too my needs,
but which one should i use, there is so many, PHPlib, Fasttemplates, and so many more I dont know about, so which one do I use, which one is best for my needs???
#6
Re: PHP: Templates
Posted 19 August 2001 - 04:28 PM
What I do is create a file that I wish to serve as a template. Then instead of using variables with curly braces, I just use a standard PHP variable in it's place. This way, I can throw code into that variable and it will execute. I have found that trying to put code into the other templates systems just doesn't allow for the execution of code in that place.
Try it out and tell me what you think.
tsmoke
#7
Re: PHP: Templates
Posted 19 August 2001 - 05:55 PM
#8
Re: PHP: Templates
Posted 20 August 2001 - 02:32 AM
#9
Re: PHP: Templates
Posted 20 August 2001 - 10:20 AM
echo <<<END_AT_THIS_TEXT_NEXT_TIME
note the immediate line break after TIME..it's significant, even a space there could mess the whole thing up. " and ' are definitely allowed without escaping..and also note the new line for the end tag
END_AT_THIS_TEXT_NEXT_TIME;
you can swap out END_AT_THIS_TEXT_NEXT_TIME with anything you want..but you want to make sure it won't be repeated in the middle of the beginning and the end..
#10
Re: PHP: Templates
Posted 20 August 2001 - 10:42 AM
#11
Re: PHP: Templates
Posted 21 August 2001 - 02:37 PM
#12
Re: PHP: Templates
Posted 22 August 2001 - 08:54 AM
#13
Re: PHP: Templates
Posted 22 August 2001 - 11:10 AM
maybe it just took a while to reach the host,
im not sure.
Only other thing I want now is how do i put some php in that?
#14
Re: PHP: Templates
Posted 24 August 2001 - 11:12 PM
#15
Re: PHP: Templates
Posted 26 August 2001 - 02:51 PM
Thanks for all the help, it works a treat and tons better.
|
|

New Topic/Question
Reply



MultiQuote




|