OpenCart 和支付模块 mollie - return str_replace
OpenCart & payment module mollie - return str_replace
我希望在这里收到关于以下主题的一些信息:
调用此函数:
protected function getAdminDirectory()
{
return str_replace(HTTP_SERVER, '', HTTP_ADMIN);
}
在此 php 语句中结束:
PHP 注意:使用未定义常量 HTTP_ADMIN - 在第 452
行 /xx/xxx/xxx/www/catalog/controller/payment/mollie_ideal.php 中假设 'HTTP_ADMIN'
这个语句似乎检索了 admin 目录,但常量未定义,我不确定在哪里定义它,因为我的问题是我是否可以将其设为静态,因为该目录是已知的。
如果是的话会是什么样子?
{
return str_replace(HTTP_SERVER, 'admin', admin);
}
使用opencart 2.0.1.1和Mollie 5.2.6版本
https://github.com/mollie/OpenCart/releases
先谢谢你。
您应该在 config.php 文件中添加管理目录指令。
定义('HTTP_ADMIN', 'http://xxxx.xx/admindirectory/'); (通常只是 admin/)
对于遇到此问题的其他人:
*/
protected function getAdminDirectory()
{
// if no default admin url defined in the config, use the default admin directory.
if (!defined('HTTP_ADMIN'))
{
return 'admindirectory/';
}
return str_replace(HTTP_SERVER, '', HTTP_ADMIN);
}
在 catalog/controller/payment/mollie_ideal.php
我希望在这里收到关于以下主题的一些信息:
调用此函数:
protected function getAdminDirectory()
{
return str_replace(HTTP_SERVER, '', HTTP_ADMIN);
}
在此 php 语句中结束:
PHP 注意:使用未定义常量 HTTP_ADMIN - 在第 452
行 /xx/xxx/xxx/www/catalog/controller/payment/mollie_ideal.php 中假设 'HTTP_ADMIN'这个语句似乎检索了 admin 目录,但常量未定义,我不确定在哪里定义它,因为我的问题是我是否可以将其设为静态,因为该目录是已知的。
如果是的话会是什么样子?
{
return str_replace(HTTP_SERVER, 'admin', admin);
}
使用opencart 2.0.1.1和Mollie 5.2.6版本 https://github.com/mollie/OpenCart/releases
先谢谢你。
您应该在 config.php 文件中添加管理目录指令。
定义('HTTP_ADMIN', 'http://xxxx.xx/admindirectory/'); (通常只是 admin/)
对于遇到此问题的其他人:
*/
protected function getAdminDirectory()
{
// if no default admin url defined in the config, use the default admin directory.
if (!defined('HTTP_ADMIN'))
{
return 'admindirectory/';
}
return str_replace(HTTP_SERVER, '', HTTP_ADMIN);
}
在 catalog/controller/payment/mollie_ideal.php