Login   Register  
PHP Classes
elePHPant
Icontem

File: public_html/index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of tianfan  >  HawkPHP framework  >  public_html/index.php  >  Download  
File: public_html/index.php
Role: Example script
Content type: text/plain
Description: entrance file
Class: HawkPHP framework
Framework that implements MVC design pattern
Author: By
Last change:
Date: 2009-12-19 20:06
Size: 546 bytes
 

Contents

Class file image Download
<?php
error_reporting
(E_ALL|E_STRICT);
ini_set('display_errors'1);
date_default_timezone_set('Asia/Shanghai');//please change it to your timezone
define('BASEDIR',dirname(__FILE__));
$baseDir=dirname(__FILE__).'/../hawkphp';
include 
$baseDir.'/hawkphp/loader.php';
$loader=new Loader($baseDir);

/*$loader->setRouterMode('norewrite');
*if your host not support rewrite,you may  use 'norewrite' mode;
*with this mode ,you can visit your web as 'index.php?c=Controller&a=Action...'
*/
$loader->setRouterMode('default');
$loader->run();