һһ
//Ӧ
		//ַ
$config['URL_REWRITE_ON']=false;//Ƿдtrueд,falseرд
$config['URL_MODULE_DEPR']='/';//ģָ
$config['URL_ACTION_DEPR']='-';//ָ
$config['URL_PARAM_DEPR']='-';//ָ
$config['URL_HTML_SUFFIX']='.html';//α̬׺ã .html 
		
		//ģ
$config['MODULE_PATH']='./module/';//ģĿ¼
$config['MODULE_SUFFIX']='Mod.class.php';//ģ׺
$config['MODULE_INIT']='init.php';//ʼ
$config['MODULE_DEFAULT']='index';//Ĭģ
$config['MODULE_EMPTY']='empty';//ģ		
		
		//
$config['ACTION_DEFAULT']='index';//Ĭϲ
$config['ACTION_EMPTY']='_empty';//ղ

		//־
$config['LOG_ON']=false;//ǷϢ浽ļtruefalse
$config['LOG_PATH']='./data/log/';//ϢŵĿ¼ϢΪλ

һļindex.php
<?php
//CanPHPĿ¼
define('CP_PATH',dirname(__FILE__).'/../CanPHP/');

require(dirname(__FILE__).'/../config.php');//

require(CP_PATH.'core/cpApp.class.php');//Ӧÿ
require(CP_PATH.'core/cpModel.class.php');//ݿģ
require(CP_PATH.'core/cpTemplate.class.php');//ģ

$app=new cpApp($config);//ʵһӦÿ
$model=new cpModel($config);//ʵģ
$tpl=new cpTemplate($config);//ʵģ

//ִĿ
$app->run();
?>

ִ
ַhttp://www.canphp.com/cms/admin/index.php/article/index.html
һ,ַ
	õǰģarticle,ǰindex
	ע:ַģ飬ķָȥ
	$config['URL_MODULE_DEPR']='/';//ģָ
	$config['URL_ACTION_DEPR']='-';//ָ
	$config['URL_PARAM_DEPR']='-';//ָ

	http://www.canphp.com/cms/admin/index.php/article/index-id-100.html
	print_r($_GET);
	õ
		$_GET['_module']='article';
		$_GET['_action']='index';
		$_GET['id']=100;
		$_GET[0]='id';
		$_GET[1]=100;	

ڶʼinit.phpǷڣءڣ

峣
	__ROOT__  ֵΪ http://www.canphp.com/cms
	__PUBLIC__ ֵΪ http://www.canphp.com/cms/public
	__APP__ ֵΪ http://www.canphp.com/cms/admin/index.php
	__URL__ ֵΪ http://www.canphp.com/cms/admin/index.php/article

	ע⣺__ROOT____PUBLIC__ڶλͼƬcssjs·
	     __APP____URL__ַ
	$config['URL_REWRITE_ON']=true;trueʱ
	__APP__ ȥindex.phpļ ʱֵΪ http://www.canphp.com/cms/admin/
	__URL__ ȥindex.phpļ ʱֵΪ http://www.canphp.com/cms/admin/article

Ĳ,module/articleMod.class.phpļǷڣ
	ڼarticleModǷ壬articleModѾ壬indexǷڣڣִindexindexղempty()ǷڣڣִУ򱨴
	module/articleMod.class.phpģempty.class.phpļǷڣأ򱨴

岽ǰصcp_app_end()ǷڣִУڣءˣ̿ƽ



