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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.