简体   繁体   English

Joomla模块的PHP错误?

[英]Joomla module php error?

I've got a situation with a Joomla 3 module. 我遇到了Joomla 3模块的情况。 It looks like it's working as it's supposed to work, but the content is not exactly what I need. 看起来应该可以正常工作,但是内容并不是我真正需要的。

In this code something is wrong: 在此代码中,出现了错误:

<input type="submit" class="button" value="<?php echo JText::_('Submit'); ?>" class="submit" />

I also tried to use a few PHP code testers, but 3 out of 4 say there's no problem. 我也尝试使用一些PHP代码测试器,但四分之三的人说没有问题。 One of them said to me there's an unexpected "<" in this line. 其中一个对我说,这行中有一个意外的“ <”。 Anyway, that's one thing that's false (correct me if I'm wrong). 无论如何,那是错误的一件事(如果我错了,请纠正我)。

Anyway, this code should be showing in the content button "Submit", but it shows no value, only the module name. 无论如何,此代码应显示在内容按钮“提交”中,但它不显示任何值,仅显示模块名称。

Any ideas, guys? 大家有什么想法吗?

Please add name="MyButton" attribute in input, and assign simply value="Submit" and than test it. 请在输入中添加name =“ MyButton”属性,然后简单地分配value =“ Submit”并进行测试。

and yes keep only one class attribute :) 是的,仅保留一个class属性:)

hope it will work :) 希望它能工作:)

<input type="submit" name="MyButton" class="button" value="Submit" />

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM