﻿<?php
/////////////////////////////////////////////////////////////////////////////
//
// SpeedPHP - 蹇€熺殑涓枃PHP妗嗘灦
//
// Copyright (c) 2008 - 2009 SpeedPHP.com All rights reserved.
//
// 璁稿彲鍗忚璇锋煡鐪?http://www.speedphp.com/
//
/////////////////////////////////////////////////////////////////////////////

/**
 * spConfig
 *
 * SpeedPHP搴旗敤妗嗘灦镄勭郴缁熼粯璁ら厤缃?
 */

return array(
	'mode' => 'debug', // 搴旗敤绋嫔簭妯″纺锛岄粯璁や负璋冭瘯妯″纺
	'sp_core_path' => SP_PATH.'/Core', // 妗嗘灦MVC镙稿绩鐩綍
	'sp_include_path' => array( SP_PATH.'/Extensions' ), // 妗嗘灦镓╁睍锷熻兘杞藉叆璺缎
	'mark_launch' => array( // 镊姩镓ц镣圭殑镙硅妭镣?
		'router_prefilter' => FALSE, // 璺敱镊姩镓ц鍑芥暟
	),
	'auto_load_controller' => array('spArgs'), // 鎺у埗鍣ㄨ嚜锷ㄥ姞杞界殑镓╁睍绫诲悕
	'auto_load_model' => array('spPager','spVerifier','spCache','spLinker'), // 妯″瀷镊姩锷犺浇镄勬墿灞旷被鍚?
	
	'sp_error_show_source' => 5, // spError鏄剧ず浠ｇ爜镄勮鏁?
	'allow_trace_onrelease' => FALSE, // 鏄惁鍏佽鍦ㄩ儴缃叉ā寮忎笅杈揿嚭璋冭瘯淇℃伅
		
	'inst_class' => array(), // 宸插疄渚嫔寲镄勭被鍚岖О
	'import_file' => array(), // 宸茬粡杞藉叆镄勬枃浠?
	'sp_access_store' => array(), // 浣跨敤spAccess淇濆瓨鍒板唴瀛樼殑鍙橀噺
	'view_registered_functions' => array(), // 瑙嗗浘鍐呮寕闱犵殑鍑芥暟璁板綍

	'default_controller' => 'main', // 榛樿镄勬带鍒跺櫒鍚岖О
	'default_action' => 'index',  // 榛樿镄勫姩浣滃悕绉?
	'url_controller' => 'c',  // 璇锋眰镞朵娇鐢ㄧ殑鎺у埗鍣ㄥ彉閲忔爣璇?
	'url_action' => 'a',  // 璇锋眰镞朵娇鐢ㄧ殑锷ㄤ綔鍙橀噺镙囱瘑

	'auto_session' => TRUE, // 鏄惁镊姩寮€鍚疭ESSION鏀寔
	'dispatcher_error' => "spError('璺敱阌栾锛岃妫€镆ユ槸鍚﹀瓨鍦ㄨ鍑芥暟銆?);", // 瀹氢箟澶勭悊璺敱阌栾镄勫嚱鏁?
	
	'sp_cache' => APP_PATH.'/tmp', // 妗嗘灦涓存椂鏂囦欢澶圭洰褰?
	'controller_path' => APP_PATH.'/controller', // 鐢ㄦ埛鎺у埗鍣ㄧ▼搴忕殑璺缎瀹氢箟
	'model_path' => APP_PATH.'/model', // 鐢ㄦ埛妯″瀷绋嫔簭镄勮矾寰勫畾涔?

	'url' => array( // URL璁剧疆
		'url_path_info' => FALSE, // 鏄惁浣跨敤path_info鏂瑰纺镄刄RL
		'url_path_base' => '/index.php', // URL镄勬抵鐩綍璁块棶鍦板潃
	),
	
	'db' => array(  // 鏁版嵁搴撹繛鎺ラ厤缃?
		'driver' => 'mysql',   // 椹卞姩绫诲瀷
		'host' => 'localhost', // 鏁版嵁搴揿湴鍧€
		'port' => 3306,        // 绔彛
		'login' => 'root',       // 鐢ㄦ埛鍚?
		'password' => '',      // 瀵嗙爜
		'database' => '',      // 搴揿悕绉?
		'prefix' => '',           // 琛ㄥ墠缂€
	),
	'db_driver_path' => '/mysql.php', // 鏁版嵁搴挞┍锷ㄦ枃浠?
	
	'view' => array( // 瑙嗗浘閰岖疆
		'enabled' => TRUE, // 寮€鍚锲?
		'config' =>array(
			'template_dir' => APP_PATH.'/tpl', // 妯℃澘鐩綍
			'compile_dir' => APP_PATH.'/tmp', // 缂栬疟鐩綍
			'cache_dir' => APP_PATH.'/tmp', // 缂揿瓨鐩綍
			'left_delimiter' => '{',  // smarty宸﹂檺瀹氱
			'right_delimiter' => '}', // smarty鍙抽檺瀹氱
		),
		'debugging' => FALSE, // 鏄惁寮€鍚锲捐皟璇曞姛鑳斤紝鍦ㄩ儴缃叉ā寮忎笅镞犳硶寮€鍚锲捐皟璇曞姛鑳?
		'engine_name' => 'smarty', // 瑙嗗浘椹卞姩鍚岖О
		'engine_path' => SP_PATH.'/Core/Smarty/Smarty.class.php', // smarty绫诲簱璺缎
		'auto_ob_start' => TRUE, // 鏄惁镊姩寮€鍚紦瀛樿緭鍑烘带鍒?
		'auto_display' => FALSE, // 鏄惁浣跨敤镊姩杈揿嚭妯℃澘锷熻兘
		'auto_display_sep' => '/', // 镊姩杈揿嚭妯℃澘镄勬嫾瑁呮ā寮忥紝/涓烘寜鐩綍鏂瑰纺鎷艰锛宊涓烘寜涓嫔垝绾挎柟寮忥紝浠ユ绫绘帹
		'auto_display_suffix' => '.html', // 镊姩杈揿嚭妯℃澘镄勫悗缂€鍚?
	),
		
	'html' => array( 
		'enabled' => FALSE, // 鏄惁寮€鍚湡瀹为润镐丠TML鏂囦欢鐢熸垚鍣?
		'file_root_name' => 'topic', // 闱欐€佹枃浠剁敓鎴愮殑镙圭洰褰曞悕绉帮紝璁剧疆涓虹┖鍒欐槸鐩存帴鍦ㄥ叆鍙ｆ枃浠剁殑鍚岀骇鐩綍鐢熸垚
		'url_setter' => array("spHtml","setUrl"), // 鍐椤叆URL镄勫垪琛ㄦ帴鍙ｈ缃紝杩欓噷鍚屾椂杩桦彲浠ヨ缃垚鍗旷嫭镄勫嚱鏁板悕绉?
		'url_getter' => array('spHtml','getUrl'), // 銮峰彇URL镄勫垪琛ㄦ帴鍙ｈ缃?
		'safe_check_file_exists' => FALSE, // 銮峰彇URL镞讹紝妫€镆ョ墿鐞咹TML鏂囦欢鏄惁瀛桦湪锛屽鏂囦欢涓嶅瓨鍦紝鍒栾繑锲炲畨鍏ㄧ殑锷ㄦ€佸湴鍧€
	),
	
	'lang' => array(), // 澶氲瑷€璁剧疆锛岄敭鏄疮绉嶈瑷€镄勫悕绉帮紝钥屽€煎彲浠ユ槸default锛堥粯璁よ瑷€锛夛紝璇█鏂囦欢鍦板潃鎴栬€呮槸缈昏疟鍑芥暟
					// 鍚屾椂璇锋敞镒忥紝鍦ㄤ娇鐢ㄨ瑷€鏂囦欢骞朵笖鏂囦欢涓瓨鍦ㄤ腑鏂囩瓑镞讹紝璇峰皢鏂囦欢璁剧疆鎴怳TF8缂栫爜
	'ext' => array(), // 镓╁睍浣跨敤镄勯厤缃抵鐩綍
		
	'include_path' => array(
		APP_PATH.'/include',
	), // 鐢ㄦ埛绋嫔簭镓╁睍绫昏浇鍏ヨ矾寰?
);
