Jump to content

Template System


NLT

Recommended Posts

I have made a template system.

Here are the directories:

Template files are held in: /class/templates/

Classes are held in: /class/

 

I've used ob_start() etc so I can write PHP in the TPL file.

 

But when I use one of my variables I have used in the configuration file to declare a class, it says undefined variable.

 

It even says it when I include the configuration file from the TPL file itself.

 

And I know it's reaching there because it's connecting to the database and things.

Link to comment
https://forums.phpfreaks.com/topic/263950-template-system/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.