Could you guys please tell me what you think of my code if its proper or if it will corse problems.
Thanks.
Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("templates/html.tpl");
$html->setParameter("html_page_title", $html_page['title']);
$html->setParameter("html_page_content", $html_page['content']);
echo $html->createHTML();
//************************************************//{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter("e;html_page_title"e;, $html_pageї'title']);
$html->setParameter("e;html_page_content"e;, $html_pageї'content']);
echo $html->createHTML();
//************************************************//
thats my page.ule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter("e;html_page_title"e;, $html_pageї'title']);
$html->setParameter("e;html_page_content"e;, $html_pageї'content']);
echo $html->createHTML();
//************************************************//
thats my page.*****************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter("e;html_page_title"e;, $html_pageї'title']);
$html->setParameter("e;html_page_content"e;, $html_pageї'content']);
echo $html->createHTML();
//************************************************//
[/ph/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"enction html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/m it will corse problems.
Thanks.
Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter(u guys please tell me what you think of my code if its proper or if it will corse problems.
Thanks.Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules ]
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter("e;html_page_tcludes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter("e;html_page_title"e;, $html_pageї'title']);
$html->322949e]
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'cont9e]
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter("e;html_page_title"e;, $html_pageї'title']);
$html->setParameter("e;html_page_content"e;, $html_pageї'cont
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("templates/html.tpl");
$html->setParameter("html_page_title", $html_page['title']);
$html->setParameter("html_page_content", $html_page['content']);
echo $html->createHTML();
//************************************************//{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//*********************************
Thanks.
Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
ode if its proper or if it will corse problems.
Thanks.Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
******************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter("e;html_page_title"e;, $html_pageї'title']);
$html->setParameter("e;html_page_content"e;, $html_pageї'content']);
echo $html->createHTML();
//*****************************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter("e;html_page_title"e;, $html_pageї'title']);
$html->setParameter("e;html_page_content"e;, $html_pageї'content']);
echo $html->createHTML();
html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* ystem/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//******************************** my code if its proper or if it will corse problems.
Thanks.Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("templates/html.tpl");
$html->setParameter("html_page_title", $html_page['title']);
$html->setParameter("html_page_content&qu **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("templates/html.tpl");
$html->setParameter("html_page_title", $html_page['title'])des **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("templates/html.tpl");
$html->setParameter("html_page_title", $html_page['title']);
$html->setParameter("html_page_content", $html_page['content']);
echo $html-&amamp;quote;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'd;parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("templates/html.tpl");
$html->setParameter("html_page_title", $html_page['title']);
$html->setParameter("html_page_content", $html_page['content']);
echo $html->createHTML();
//************************************************////* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter("e;html_page_title"e;, $html_pageї'title']);
$html->setParameter(&q me what you think of my code if its proper or if it will corse problems.
Thanks.
Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php')code if its proper or if it will corse problems.
Thanks.Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules * my code if its proper or if it will corse problems.
Thanks.Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//******************************ll me what you think of my code if its proper or if it will corse problems.
Thanks.Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("templates/html.tpl");
$html->setParameter("html_page_title", $html_page['title']);
$html->setParameter("html_p***********************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter(& please tell me what you think of my code if its proper or if it will corse problems.
Thanks.Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html->setParameter("e;html_page_title"e;, $html_pageї'title']);
$html->setParameter("e;html_page_content"e;, $html_pageї'content']);
echo $html->createHTML();
e if its proper or if it will corse problems.
Thanks.Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parametersї"e;$param"e;] = $value;
}
function createHTML()
{
$html = implode("e;"e;, (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_pageї'title'] = 'demo';
$html_pageї'content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("e;templates/html.tpl"e;);
$html-&amll corse problems.
Thanks.Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("templates/html.tpl");
$html->setParameter("html_page_title", $html_page['title']);
$html->setParameter("html_page_content", $html_page['content']);
echo $html->createHTML();
//************************************************////* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("e;{"e;.$key."e;}"e;, $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("templates/html.tpl");
$html->setParameter("html_page_title", $html_page['title']);
$html->setParameter("html_page_content", $html_page['content']);
echo $html->createHTML();
//************************************************//
thats my page.u guys please tell me what you think of my code if its proper or if it will corse problems.
Thanks.
Code: Select all
//************************************************//
//* **//
//* includes **//
//* **//
//************************************************//
//* include('system/classes.php'); *//
class html
{
var $template;
var $parameters = array();
function html($location)
{
$this->template = $location;
}
function setParameter($param, $value)
{
$this->parameters["$param"] = $value;
}
function createHTML()
{
$html = implode("", (file($this->template)));
foreach($this->parameters as $key => $value)
{
$html = str_replace("{".$key."}", $value, $html);
}
return $html;
}
}
//* include('system/classes.php'); ( end file ) *//
//************************************************//
//* **//
//* modules **//
//* **//
//************************************************//
//* include('modules/main.php'); *//
function mainModule()
{
$html_page = array ();
$html_page['title'] = 'demo';
$html_page['content'] = 'demo content';
}
//* include('modules/main.php'); ( end page )*//
//************************************************//
//* **//
//* echo output **//
//* **//
//************************************************//
$html_page = mainModule();
$html = new html("templates/html.tpl");
$html->setParameter("html_page_title", $html_page['title']);
$html->setParameter("html_page_content", $html_page['content']);
echo $html->createHTML();
//************************************************//