0
실패합니다.
그러나 내 모든 아약스 스크립트가 불을 지르고를 사용하여 AJAX 응답이 시점에서과에 실패, 나는 치명적인 오류이 시간을 볼 수 있습니다<b>Fatal error</b>: Uncaught exception 'SmartyException' with message 'Unable to load config file "en.conf"' in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ex\libs\sysplugins\smarty_internal_config.php:90
Stack trace:
#0 C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ex\libs\sysplugins\smarty_internal_config.php(39): Smarty_Internal_Config->buildConfigFilepath()
#1 C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ex\libs\sysplugins\smarty_internal_config.php(117): Smarty_Internal_Config->getConfigFilepath()
#2 C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ex\libs\sysplugins\smarty_internal_config.php(108): Smarty_Internal_Config->readConfigSource(Object(Smarty_Internal_Config))
#3 C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ex\libs\sysplugins\smarty_internal_config_file_compiler.php(44): Smarty_Internal_Config->getConfigSource()
#4 C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ex\libs\sysplugins\smarty_in in <b>C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ex\libs\sysplugins\smarty_internal_config.php</b> on line <b>90</b><br />
예를 들어, 만약 내가 최초의 경고를 받고있는 이유 어떤 생각 (구문이 변경되었습니다.) 또한 왜 치명적인 오류가 발생합니까?
(멋지 버전 3.0.8)감사
에서 변경되었다는 것, 모두 하나 개의 단어가 너무
$smarty->configLoad('en.conf');
첫번째 에러 해결 될 것으로 보인다 두 번째 문제는 (아약스 스크립트가로드되지 않음) 설정 디렉토리를 명시 적으로 설정해야하는 것으로 보입니다. 이렇게하면 '$ smarty-> setConfigDir ('../configs '); – Athanatos