Login   Register  
PHP Classes
elePHPant
Icontem

File: config/defines.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of lattuada  >  Another simple MVC  >  config/defines.php  >  Download  
File: config/defines.php
Role: Configuration script
Content type: text/plain
Description: configuring the app
Class: Another simple MVC
Model view controller framework implementation
Author: By
Last change:
Date: 2010-02-24 09:07
Size: 677 bytes
 

Contents

Class file image Download
<?php

ini_set
('display_errors'true);
ini_set('display_startup_errors'true);
ini_set('error_reporting'E_ALL);

define('ALIAS''mvc/www');
define('APP_DIR'realpath('..'));
define('APP_URL''http://' $_SERVER['SERVER_NAME'] . '/' ALIAS);
define('DS'DIRECTORY_SEPARATOR);
define('DB_DSN''mysql:dbname=mvc;host=127.0.0.1');
define('DB_USER''******');
define('DB_PASS''******');

/*
 *
 CREATE TABLE `mvc`.`employees` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`name` VARCHAR( 255 ) NOT NULL ,
`age` INT NOT NULL
) ENGINE = MYISAM ;

INSERT INTO `mvc`.`employees` (
`id` ,
`name` ,
`age`
)
VALUES (
NULL , 'nicolas', '27'
), (
NULL , 'sam', '28'
);

 */