|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Article Discussion: Writing Your Own Template and Caching Class In PHP
If you have any questions or comments about this article then please post them here.
This forum post relates to this article |
|
#2
|
|||
|
|||
|
Here's the whole thing.. indented
![]() PHP Code:
__________________
Best Regards, Håvard Lindset Last edited by Lindset : November 20th, 2002 at 03:30 AM. |
|
#3
|
|||
|
|||
|
No PHP output?
I found you article today and starting playing around with it. I thought it was a great article by the way. But I have a problem. I'll try and keep this short, cause I don't even know if you will reply.
I'm trying to make a content wrapper/template for my company's website. The layout is setup so there is a place in the middle of the page where the content goes and menu bars, pics etc surround the content. At first I just used a query string var to pass the content location(ie /index.html) and used readfile(). This works fine on regular html docs but not php docs, the php code isn't compiled. So then I moved on to trying iframes, which does compile the php, but I hate having a scroll bar within a scrollbar. So I came to your tutorial and tried it out. The html pages work fine but the php code doesn't get compiled. Do you know a way to compile the php before it is outputted to the screen? Basically I have it setup so I use an ID to access the db and get the body(html/php code) then I follow your tutorial to the letter. The pure html code is fine, but the php code stays as php code(<?php phpinfo() ?> for example). Any ideas? Thanks |
|
#4
|
|||
|
|||
|
How to use Object with multiple blocks
Hi,
First, I think the article was great. How might I use the Template object to display more then one block of repeated database data? I.e., Show a listing of users and listing of groups on the same page. Template Power has this feature however I don't want to use it for obvious reason discussed in your article. Plus I really like the cached feature. Thanks, |
![]() |
| Viewing: Dev Articles Community Forums > Community > Development Tutorials > Article Discussion: Writing Your Own Template and Caching Class In PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|