Developped on a WAMP stack by a bunch of superheroes :3
- Better url rewrite not based on ?params=value but _$SERVER
- Some security !
- Split shop website and the intranet
(see httpd.conf)
- rewrite_module
- vhost_alias_module
(see php.ini)
- php_pdo_mysql uncommented
- short_open_tag = On
(see httpd-vhosts.conf)
<VirtualHost exiastore.com:80>
DocumentRoot "D:\wamp\www\webproject\web"
ServerName "exiastore.com"
ServerAlias "www.exiastore.com"
ErrorLog "D:\wamp\www\webproject\error.log"
CustomLog "D:\wamp\www\webproject\custom.log" common
</VirtualHost>
(see here)
127.0.0.1 exiastore.com
(see config.php)
error_reporting(-1);
ini_set("display_errors", 1);
define('ROOT', realpath(dirname(__FILE__)) . '/');
define('CORE', ROOT . '_/');
define('CTRL', ROOT . 'Controller/');
define('MODL', ROOT . 'Model/');
define('VIEW', ROOT . 'View/');
define('TMPL', VIEW . 'tpl/');
define('STIC', 'http://exiastore.com/static');
define('DRAP', TRUE); // Direct Access Protection
const HOST = "localhost";
const PORT = "3306";
const USER = "root";
const PASS = "";
const DATABASENAME = "exiastore";