0

Hello,

I'm working on a project that needs to be done in PHP, however, everything has to be done locally. To test files that I'm editing I have installed Xampp on my computer. As far as I can tell, I have installed everything properly. When I load up this page, the template appears but I get an error at the bottom saying:

Fatal error: Class 'Templates' not found in testfile.php on line 4

Here is the page:

<?php

require_once 'test/Templates.php';
Templates::$options['version'] = 3;
$page = Templates::factory('Fixed');
$page->titlegraphic     = '<h1>Hello world</h1>';
$page->maincontentarea  = '<p>Testing the main content area.</p>';
echo $page->toHtml();

?>

Any help with how to fix this would be greatly appreciated! Thanks in advance!

4
Contributors
4
Replies
6
Views
6 Years
Discussion Span
Last Post by axymak
0

Actually just solved the issue. Is there a way I can delete/lock the thread..?

0

No, unlikely. DW have una paura nera of deleting posts. You can however mark it solved so that others don't waste their time with it when they see it in the list.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.