Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/245.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 登录Prestashop上的不同客户组后重定向_Php_Redirect_Login_Prestashop 1.6 - Fatal编程技术网

Php 登录Prestashop上的不同客户组后重定向

Php 登录Prestashop上的不同客户组后重定向,php,redirect,login,prestashop-1.6,Php,Redirect,Login,Prestashop 1.6,我需要在我的网站上做一些改变,但我有一些问题 我有两个角色组(用户和经销商)。我需要,当经销商登录到“我的帐户页”和当用户登录重定向到previsure页 我试图在authentication.top上更改这一行 {if is_array($customerGroups)} {if $customerGroups[0]['id_group'] == 4} {if isset($back)}<input type="hidden" class="hidden" name="back" val

我需要在我的网站上做一些改变,但我有一些问题

我有两个角色组(用户和经销商)。我需要,当经销商登录到“我的帐户页”和当用户登录重定向到previsure页

我试图在authentication.top上更改这一行

{if is_array($customerGroups)}
{if $customerGroups[0]['id_group'] == 4}
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
else
<input type="hidden" class="hidden" name="back" value="{$smarty.server.HTTP_REFERER}" />
{if is_数组($customerGroups)}
{如果$customerGroups[0]['id_group']==4}
{if-isset($back)}{/if}
其他的
我有这个错误

Fatal error: Uncaught 
--> Smarty Compiler: Syntax error in template "/home/mysite/public_html/themes/default-bootstrap/authentication.tpl" on line 760 "" unclosed {if} tag 
<-- thrown in /home/mysite/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 760
致命错误:未捕获
-->Smarty编译器:模板“/home/mysite/public_html/themes/default bootstrap/authentication.tpl”第760行“未关闭的{if}标记”中的语法错误

需要把一个封闭的标签

{/if}

你好,是的,对不起我分心的错误。但这不起作用。若我尝试在用户组之间设置重定向,并没有什么不同。甚至输入用户重定向到“我的帐户”页面。如果我放置简单的
函数并重定向到previsour页面。但是,如果我使用条件更改relationshipt中ID为role.的重定向链接,则该函数将无效。