IntactDev
Member
- Nov 22, 2012
- 399
- 71
Hello DevBest!
Today, I am releasing this first project that I could say that I've actually COMPLETED (that has been released. )
ZipCMS is a framework made for developers to expand upon to create their website. ZipCMS makes it extremely easy to add functionality to your website pages, with minimal effort. There isn't much I can explain, but I will let your view the code yourself, and see what it does, and how it works.
SNIPPETS:
class.zcore.php
engine.php
index.php
DEMO: [
TO INSTALL:
This code will tell ZipCMS to execute that function whenever you're on that page. All you have to do is make the PHP class and function, and you're good to go.
Enjoy
Today, I am releasing this first project that I could say that I've actually COMPLETED (that has been released. )
ZipCMS is a framework made for developers to expand upon to create their website. ZipCMS makes it extremely easy to add functionality to your website pages, with minimal effort. There isn't much I can explain, but I will let your view the code yourself, and see what it does, and how it works.
SNIPPETS:
class.zcore.php
PHP:
<?php
class zCore {
final public function findFunction($z) {
global $zip, $mail;
if(!isset($z) || empty($z)) {
$z = 'index';
}
switch($z) {
case 'prices':
$mail->compileMail();
break;
}
}
}
?>
engine.php
PHP:
<?php
session_start();
error_reporting(E_ALL);
ini_set('display_errors', '1');
define('D', DIRECTORY_SEPARATOR);
define('Z', '_zip' . D);
define('L', '_lib' . D);
define('C', '_class'. D);
require Z . 'config.php';
require Z . L . 'common.php';
try {
$db = new PDO($zip['Database']['Data']['Source']['Name'], $zip['Database']['Username'], $zip['Database']['Password']);
} catch(PDOException $e) {
die(zipError('ZipDB: Connection Failed', $e->getMessage()));
}
require Z . C . 'class.ztpl.php';
require Z . C . 'class.zcore.php';
require Z . C . 'class.zmail.php';
$tpl = new zTpl();
$core = new zCore();
?>
index.php
PHP:
<?php
require 'engine.php';
$core->findFunction(secure(@$_GET['url']));
$tpl->addTpl();
$tpl->display();
?>
DEMO: [
You must be registered for see links
]TO INSTALL:
- Download ZipCMS from [
You must be registered for see links].
- Extract it to your webserver.
- Navigate to '_zip' --> 'config.php' and edit it accordingly.
- Go to your webserver via your web browser, and read all the pages that will provide some information about ZipCMS.
PHP:
case '(page name)':
$classWhereFunctionIsLocated->functionName();
break;
Enjoy
Last edited: