Menu

Tree [c35358] master /
 History

HTTPS access


File Date Author Commit
 bin 2015-06-10 Ikakke Ikpe Ikakke Ikpe [62313f] version 3.14.29 house cleaning
 config 2015-07-01 Ikakke Ikpe Ikakke Ikpe [c35358] version 3.16.42 fix on tpl.conf removing space ...
 core 2015-06-18 Ikakke Ikpe Ikakke Ikpe [e6da4b] version 3.14.35 minor fix to view class
 databases 2015-02-25 Ikakke Ikpe Ikakke Ikpe [c410ac] Zedek version 3.4.7
 doc 2015-06-10 Ikakke Ikpe Ikakke Ikpe [62313f] version 3.14.29 house cleaning
 engines 2015-06-11 Ikakke Ikpe Ikakke Ikpe [698e48] version 3.14.31 re introduced useful fromt end ...
 internals 2015-07-01 Ikakke Ikpe Ikakke Ikpe [ec8b1c] version 3.16.40 add method different to form to...
 libs 2015-06-09 Ikakke Ikpe Ikakke Ikpe [0a1029] version 3.14.27 house cleaning
 models 2015-06-10 Ikakke Ikpe Ikakke Ikpe [62313f] version 3.14.29 house cleaning
 public 2015-06-12 Ikakke Ikpe Ikakke Ikpe [71cee2] version 3.14.34 index.html removed from public ...
 sessions 2015-06-10 Ikakke Ikpe Ikakke Ikpe [62313f] version 3.14.29 house cleaning
 sites 2015-06-10 Ikakke Ikpe Ikakke Ikpe [62313f] version 3.14.29 house cleaning
 templates 2015-06-10 Ikakke Ikpe Ikakke Ikpe [62313f] version 3.14.29 house cleaning
 .gitignore 2015-06-11 Ikakke Ikpe Ikakke Ikpe [698e48] version 3.14.31 re introduced useful fromt end ...
 README.md 2015-06-09 Ikakke Ikpe Ikakke Ikpe [2b8934] version 3.14.28 fixes to read me
 anchor.php 2014-10-07 Ikakke Ikpe Ikakke Ikpe [921f84] 3.1 {{common}} template placeholder and /themes...
 initializer.php 2015-06-09 Ikakke Ikpe Ikakke Ikpe [45442d] version 3.14.20 fixed windows issues with include

Read Me

Zedek 3

Zedek Web Development Framework version 3

This is a PHP web development framework.

The features include:

  1. Model-View-Controller
  2. Object Orientation
  3. Encourages Agile development
  4. Has an Object Relational Mapper (ORM) built in called ZORM
  5. Has a templating engine accessed through a class called ZView
  6. Templating engines allows some logic in the html view file such as looping through an array with the option of including raw php in the markup
  7. URL rewriting allowing for clean urls, and sub folder installation
  8. Tested with apache, and currently being tested on lighttpd
  9. Works on Unix, unix-like and Windows Operating Systems

Requirements

  1. Apache
  2. PHP5.4+
  3. Some knowledge of PHP (expert knowledge isnt required)

Creating your first application follow these steps (Simple as 1-2-3):

Download this repo and extract so you have a folder named "zedek" or what ever else you want to call it in a non web accessible folder (one of the security features of Zedek Framework). You can either download the zip file or easier clone

git clone https://github.com/djynnius/ZedekFramework.git

set persmissions to allow reading and writing to zedek folder

Change directory into the public folder and from command line run :

php -S localhost:8080 zedek.php

on windows replace php with the path to the php binary - example:

c:\xampp\php\php.exe -S localhost:8080 zedek.php

You are done!

You can now view your application on localhost:8080

Hello World!

Zedek 3 is built to map urls to engine directories and methods of the class CController (for current controller) in a style:

http://mysite.com/controller/method/id/?arg1=val1&arg2=val2...$argn=valn

(this mapping is handled primarily by a class named URLMaper)

No routing files are required.

The MVC is made literal within the engine folder.

  1. To create a new app named foo create a folder with the name foo within the engines folder.
  2. within this create a class file "controller.php".

next within the controller file enter the following code inside your php tags

<?php
namespace __zf__;
class CController extends ZController{
    function bar(){
        print "Hello World";
    }
}
  1. Browse to http://mysite.com/foo/bar

and you should see your hello world message!

Congratulations!