Giter Site home page Giter Site logo

wtf's Introduction

wtf

Wilfried True Framework

aka Wilfried Tremendous Framework aka Wilfried Typical Framework aka Wilfried Tender Framework aka Wilfried Terrified Framework

A simple framework using MVC the silly way Coded in bad english by a frenchy

Requirements :

  • Php 5.3+
  • Mysql 5+
  • Smarty 3+
  • Programming skills

Installation :

  • Copy files
  • Copy external lib : Smarty into libs/Smarty/ (or make a simlink)
  • Change /cache/ to be writeable
  • Create mysql database
  • Insert documentation/creation.sql into database
  • Edit config.inc.php
  • Point your browser to the project dir
  • You can log in !! (user/pass is w/w) // security level : master

How this work ?

Magic ! or php code

web/inc/header.inc.php do the most of the job (get values and stuff)

web/inc/renderer.inc.php do the rendering using smarty or json

for each page.php you have to create a page.tpl into views

ProTips :

  • Disabling authentification by simply remove the lines in web/inc/header.inc.php:
require($config['basedir'].'/models/Utilisateur.class.php');
$utilisateur = new Utilisateur($dbh,$traduction);
$messages = $utilisateur->verifie_connexion($messages);
  • Adding pages copy/paste an existing page/view

  • json ? what about json ? simple, yourpage.php?m=json aaaaannnd magic ! you can change the renderer.inc.php if you want to use another rendering engine (plain php for example)

wtf's People

Contributors

willoucom avatar

Watchers

std::thomas avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.