0

萨拉姆每一个

我的英语不好

我开发了一个支付模块,它有一个名为validation.php 的控制器

这个validation.php 验证付款,它有两个状态

第一个如果付款有效,则必须查看ok-ok-ok-ok

第二个如果付款无效,则必须查看no-no-no-no

在网页中,它必须查看这个

ok-ok-ok-ok

或者

no-no-no-no

必须在页面中查看此字符串,就像没有 html 标记的简单回显一样

我使用了变量content_only => true 但它在页面源代码中查看了一些我不需要的标签。

我希望我的问题得到了清楚的解释

4

2 回答 2

0

尝试这个

// Check that this payment option is still available in case the customer changed his address just before the end of the checkout process
    $res = 'NO NO';

    foreach (Module::getPaymentModules() as $module)
        if ($module['name'] == 'moduleName')
        {
            $res = 'ok ok';
            break;
        }
于 2013-09-10T13:41:53.663 回答
0

如果只需要显示页眉、页脚和中心列而忽略左右列,则可以在控制器的 initContent 函数中使用以下代码

$this->display_column_left = true;
$this->display_column_right = true;

它将隐藏左右列。如果您需要隐藏所有内容,请使用

$this->content_only = true

但还是要记住,一些基本的 html 至少会显示 html 开始和结束标记以及一些 header 基本 html 标记。

谢谢

于 2013-09-10T16:30:43.137 回答