[英]Module creation prestashop
sorry for my bad English For personal use I develop a module compatible with any prestashop version. 对不起,我的英语不好供我个人使用,我开发了一个与任何prestashop版本兼容的模块。 To display the config page on the admin and especially for the page to be compatible with all versions I use this method
为了在管理员上显示配置页面,特别是为了使该页面与所有版本兼容,我使用此方法
'option1' => Configuration::get('option1')));
$smarty->display(_PS_MODULE_DIR_ . 'monmodule/option.tpl');
in the option.tpl page 在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
Do you have a solution to stay in this principle but without errors? 您是否有解决方案,可以坚持这一原则,而且没有错误?
thanks in advance. 提前致谢。
try in tpl : 尝试在tpl中:
{if isset($option1)}{$option1}{/if}
{if isset($option2)}{$option2}{/if}
{if isset($option3)}{$option3}{/if}
....
Regards 问候
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.