Php 开发人员为Magento主题提供的错误代码

Php 开发人员为Magento主题提供的错误代码,php,html,magento,Php,Html,Magento,我正在使用的magento主题的开发人员给了我这段代码,但在将其放在我被告知的文件中后,出现了一个错误。有人能告诉我这个代码有什么问题吗 <div class="short-description clear"> <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription();, 'short_descript

我正在使用的magento主题的开发人员给了我这段代码,但在将其放在我被告知的文件中后,出现了一个错误。有人能告诉我这个代码有什么问题吗

<div class="short-description clear">
<div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription();, 'short_description') ?></div>
</div> 


还有一个额外的
$\u product->getShortDescription()
之后,它不属于那里。另外,在
'short\u description')
之后应该有另一个结束括号。将PHP行更改为:

<?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription(), 'short_description')); ?>


仍然会出现“解析错误:语法错误,意外“;”,在那次更改之后,我刚刚发现了另一个错误,即缺少一个右括号。我已经用新的代码解决方案更新了我的答案。找到了解决方案!一组()未关闭:“($\u product,nl2br($\u product->getShortDescription())”也使用了您提到的;移动/更改!为什么这会被否决?