繁体   English   中英

模块创建prestashop

[英]Module creation prestashop

对不起,我的英语不好供我个人使用,我开发了一个与任何prestashop版本兼容的模块。 为了在管理员上显示配置页面,特别是为了使该页面与所有版本兼容,我使用此方法

'option1' => Configuration::get('option1')));
$smarty->display(_PS_MODULE_DIR_ . 'monmodule/option.tpl');

在option.tpl页面中

<div class="options"><i class="icon-cogs"></i> {$option1}</div>

***{$option1}*** is well received but I have several errors one for each variables show example on prestashop 1.6 and for each received variable ***{$option1}*** ***{$option2}*** ***{$option3}***

Notice à la ligne 28 du fichier H:\Installation_Soft\xampp\PHP56\htdocs\prestashop_16123\tools\smarty\sysplugins\smarty_internal_templatebase.php(157) : eval()'d code
[8] Undefined index: Settings

您是否有解决方案,可以坚持这一原则,而且没有错误?

提前致谢。

尝试在tpl中:

{if isset($option1)}{$option1}{/if} 
{if isset($option2)}{$option2}{/if}
{if isset($option3)}{$option3}{/if}
....

问候

暂无
暂无

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

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