brsy
nah mang
- May 12, 2011
- 1,530
- 272
I am attempting to create a system similar to the one on RevCMS, but I am having a slight issue. I know it's close to completion, but I am receiving a ridiculous error.
Global.php
class.tpl.php
Error:
Global.php
PHP:
<?php
/***************************************************************\
+ TwiztCMS - "Twizting" the standards of CMS'
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ @Copyright Information
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Copyright (C) 2012 to Chris 'Twizt' Davis
+ TwiztCMS is licensed under the Public GNU v2 license
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ @License Information
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ LICENSE TEXT GOES HERE
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ @Author Information
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Otaku-Studios & DevBest - Twizt
+ ***** - zTriick
+ MSN - [email protected]
+ Website - zTriick.com & Pabbo.NET
\***************************************************************/
require_once('class/class.configuration.php');
require_once('class/class.module.php');
require_once('class/class.param.php');
$tCore = new tCore();
$tpl = new tpl();
$this->params['siteLink'] = $_CONFIG['Site']['Link'];
$this->params['siteName'] = $_CONFIG['Site']['Name'];
?>
class.tpl.php
PHP:
<?php
/***************************************************************\
+ TwiztCMS - "Twizting" the standards of CMS'
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ @Copyright Information
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Copyright (C) 2012 to Chris 'Twizt' Davis
+ TwiztCMS is licensed under the Public GNU v2 license
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ @License Information
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ LICENSE TEXT GOES HERE
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ @Author Information
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Otaku-Studios & DevBest - Twizt
+ ***** - zTriick
+ MSN - [email protected]
+ Website - zTriick.com & Pabbo.NET
\***************************************************************/
class tpl {
public function SetParam($str, $param) {
$this->params[$param] = $value;
}
function FilterParams($str)
{
foreach ($this->params as $param => $value)
{
if (is_object($value))
{
continue;
}
$str = str_ireplace('%' . $param . '%', $value, $str);
}
return $str;
}
}
?>
Error:
![xmsfdY.png](/proxy.php?image=http%3A%2F%2Fscreensnapr.com%2Fe%2FxmsfdY.png&hash=ac8f5116f694878d42d2863000844a0f)