GithubHelp home page GithubHelp logo

wcommon's Introduction

wCommon

Common code for templates, forms, and page elements.

wStandard

Functions for handling errors, managing URL's, string and date manipulations, and custom HTML elements.

HTMLComposer

An object for constructing HTML, keeping track of and closing elements as they are added to the pile.

Template

Subclass of HTML_Template_Sigma that adds useful features.

FormBuilder

Class for handling the building and processing of HTML forms.

Using wCommon—A very quick guide

The following are very high level steps (read: bare minimum steps) to setting up a simple blog-like website that uses wCommon and dStruct.

  1. Set up a server with Apache, PHP and MySQL. Using PEAR, install HTML_Template_Sigma.
  2. Install wCommon and dStruct on your server, typically in /usr/share/php. Adjust PHP's include_path to point to this location.
  3. Copy the files from the sample folder to some location reachable by Apache and set the DocumentRoot to the www folder.
  4. Create a database and run the statements in struct.sql to create the proper dStruct tables.
  5. Create a user with permissions for that database, and capture those credentials inside inc-standard.php.
  6. After editing some internal parameters, run the script create-user.php to create an admin user.
  7. At this point you should have a working website that displays posts. You can log in as the admin and create, edit, and delete posts and also upload images and other documents.

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.