PHP Classes

File: README.md

Recommend this page to a friend!
  Packages of Ákos Nikházy   Very Simple Site Framework   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Very Simple Site Framework
Framework to handle Web site requests
Author: By
Last change:
Date: 3 months ago
Size: 1,333 bytes
 

Contents

Class file image Download

very-simple-site-framework

Just a very simple almost static website framework I use for small projects to build them very fast.

It is static, because you have to hard code pages in the Router class and create Controller classes with the same name you described in the Router class.

Setup

The username and password are admin and admin. You can generate a new one by using the following code anywhere in MainController.php's handle() method. Or in index.php or wherever you find it good to print this out.

  $pw = new Password(APPKEY); // you should change the APPKEY value for even more safety in the require/head.php ?
  echo '<pre>';
  var_dum($pw ->createPasswordHash('YOUR PRECIOUS SECRET PASSWORD'));
  die();

Then you should edit the auth.yzhk file with the data you just printed to look like this:


Or even better: create a better login scheme for it. I run small apps with this on my local server, so this is fine, but on more public spaces you should consider secuirty much more than this.

# Loginless
If you want it without login (eg.: a simple website) just go to the index.php and get rid of the ```if(!$user -> getLoginStatus()) $view = 'login';```. Then the program routes the visitor to main. Also then you do not need the ```$user = new User();``` line either.