Some people might still be using my FrostCMS releases.
When I look at them I really think they are badly coded, and pretty slow.
I didn't have time to improve FrostCMS because of school. My friend wanted to learn a little bit of HTML too and I made a simple system for him which I called QuickTPL. I kept improving it bit by bit every weekend and now I have a handy system which can make your developement much faster.
I call it QuickTPL v1 Beta because a lot of classes aren't finished yet, and you'll definitely see me release a new version. It's not yet Habbo made, it's just a base. I already started on a Habbo theme but didn't do yet on the front end.
There are some examples of code in the comments I made in some files. You can take a look of the code and get ideas, I don't care if you take code out of it without giving credits, I just don't want you to steal the whole system and say it's yours.
What everyone was waiting for (the download link): QuickTPL v1 Beta.rar
Remember: It's not ready for actual use. It just showes what I learned in the past two years about PHP.
Code Example (QuickTPL.php):
PHP Code:
<?php
define('AbsoluteStart', microtime(true));
require('QuickTPL/System.php');
$QuickTPL = new Template();
$QuickTPL->SetArray(Array('cssLink' => '<link rel="stylesheet" type="text/css" href="', '/' => '" />'));
$QuickTPL->SetArray(Array('jsLink' => '<script type="text/javascript" src="', '/jsLink' => '"></script>'));
$QuickTPL->Set('sitename', Config::$name);
$QuickTPL->Set('url', URL);
$QuickTPL->AddLine('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
$QuickTPL->AddLine('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">');
$QuickTPL->AddLine('<head>');
$QuickTPL->AddLine(tab.'<title>{sitename}: {pageTitle}</title>');
Includes::Get($QuickTPL);
$QuickTPL->AddLine('</head>');
$QuickTPL->AddLine('<body>');
$QuickTPL->GetContent();
$QuickTPL->AddLine('</body>');
$QuickTPL->AddLine('</html>');
$QuickTPL->Output();
unset($QuickTPL);
?>
Easy TPL functions like:
PHP Code:
<?php
//this is the handler
$this->SetArray($DB->GetRow("SELECT shortstory, longstory FROM cms_articles WHERE id = '5'"));
?>
<!-- This is the content -->
{shortstory}
{longstory}
Like if you like it