Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sample application, creating an alternative web site for PHP
PLSQL PHP HTML Other
Branch: master

Merge pull request #10 from iGusev/patch-1

bootstrap has no alert-error class + add warning class
latest commit a06ee091e4
@phalcon authored

README.md

PHP Alternative Site

Phalcon PHP is a web framework delivered as a C extension providing high performance and lower resource consumption.

This is a sample application for the Phalcon PHP Framework. We wanted to create an alternative version of the PHP site powered by the C-extension framework.

Thanks.

Get Started

Requirements

To run this application on your machine, you need at least:

  • PHP >= 5.3.6
  • Apache Web Server with mod rewrite enabled
  • Latest Phalcon Framework extension enabled (0.4.x)

Configuration

Check your database configuration and website's base URI.

app/config/config.php

Then you'll need to create the database and initialize schema:

php -r '
require "app/config/config.php";

$n = $config->database->name;
$u = $config->database->username;
$p = $config->database->password;

echo `echo "CREATE DATABASE {$n}" | mysql -u {$u} -p {$p}`;
echo `cat schemas/php_site.sql | mysql -u {$u} -p {$p} {$n}`;
'
Something went wrong with that request. Please try again.