1. Quick start - notafrancescodavid/webmvcframework GitHub Wiki

Preconditions

In order to develop using WebMVC framework you need:

  • Operating System: Linux, Mac or Windows
  • Server: Apache web server with mod_rewrite enabled
  • Database: MySql (from 5.0 to the latest version)
  • Programming language: PHP (from 5.3 to the latest version) with DOM and mysqli extensions

Installation

To install the framework:

  1. download it from Github
  2. create a project in the root folder of your web server
  3. import all the directories downloaded from Github into the project folder
  4. modify the following lines of config/application.config.php" according to your db and web server
/**
 *  MySQL User
 */
define("DBUSER","PUT_YOUR_USERNAME");

/**
 * MySQL Password
 */
define("DBPASSWORD","PUT_YOUR_PASSWORD");

/**
 *  MySQL Database
 */
define("DBNAME","PUT_YOUR_DB_NAME");

/**
 *  MySQL Port
 */
define('DBPORT', '3306');

/**
 * Defines a constant for site URL
 * @note without the ending slash
 * @example: http://localhost/webmvc
 */
define("SITEURL","http://PUT_YOUR_HOST/PUT_YOUR_WEB_FOLDER");

In the next section, we shall see how to run your first controller using some simple WebMVC features.