Joomla 3.0 DS不起作用(使用未定义的常量DS)

Tec*_*hie 7 php joomla joomla3.0 joomla3.1

Joomla 3.0 DS不起作用.它已被删除.我明白了

Notice: Use of undefined constant DS - assumed 'DS' in
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个问题?

类似问题

从Joomla 2.5迁移到3x生成错误

Tec*_*hie 25

添加以下行

if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
Run Code Online (Sandbox Code Playgroud)

来自文档.

DS常量已被删除.如果你真的需要它,你可以改用DIRECTORY_SEPARATOR.

还有一个插件来解决这个问题.

您可以在此处找到完整列表.

Joomla 3和Joomla Platform 12.2中潜在的向后兼容性问题