php TYPO3本地开发覆盖
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php TYPO3本地开发覆盖相关的知识,希望对你有一定的参考价值。
<?php
//TYPO3 local development overrides
if( in_array( $_SERVER['REMOTE_ADDR'], array( '127.0.0.1', '::1' ) ) ) {
$GLOBALS['TYPO3_CONF_VARS']['DB']['database'] = 'exampledb';
$GLOBALS['TYPO3_CONF_VARS']['DB']['host'] = 'localhost';
$GLOBALS['TYPO3_CONF_VARS']['DB']['username'] = 'root';
$GLOBALS['TYPO3_CONF_VARS']['DB']['password'] = '';
$GLOBALS['TYPO3_CONF_VARS']['BE']['debug'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['BE']['loginSecurityLevel'] = 'normal';
$GLOBALS['TYPO3_CONF_VARS']['FE']['debug'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path'] = 'C:\\imageMagick\\';
$GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path_lzw'] = 'C:\\imageMagick\\';
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport'] = 'smtp';
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport_smtp_server'] = 'localhost:25';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['cookieDomain'] = 'example.lc';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['displayErrors'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['sqlDebug'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['displayErrors'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_errorDLOG'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_exceptionDLOG'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['sqlDebug'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_DLOG'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['FE']['debug'] = '1';
}
?>
以上是关于php TYPO3本地开发覆盖的主要内容,如果未能解决你的问题,请参考以下文章
TYPO3 测试框架 - FunctionalTestCase 未从扩展加载 TCA 覆盖
Typo3:如何通过属性验证覆盖默认错误消息?
TYPO3 tx_news 扩展不使用覆盖模板
如何将 TYPO3 7.6.x 升级到 8.x.0
在本地安装和设置 TYPO3 的最快方法是啥?
哪个 TYPO3 版本支持啥 PHP 版本?