Php 2个模板身份验证.tpl不同

Php 2个模板身份验证.tpl不同,php,smarty,prestashop,Php,Smarty,Prestashop,我目前定制了一个prestashop网站。我有两个不同的连接url,我希望在我的模板authentication.tpl中这两个url之间有一个不同的样式,因为一个url将用于“客户”组的客户,另一个url将用于“企业”组。你知道我怎么做吗。   谢谢。尝试使用width override AuthController.php和您的连接链接加载项url&spe=1 class AuthController extends AuthControllerCore { public

我目前定制了一个prestashop网站。我有两个不同的连接url,我希望在我的模板authentication.tpl中这两个url之间有一个不同的样式,因为一个url将用于“客户”组的客户,另一个url将用于“企业”组。你知道我怎么做吗。  
谢谢。

尝试使用width override AuthController.php和您的连接链接加载项url&spe=1

class AuthController extends AuthControllerCore
{   
      public function initContent()
      {
           Parent::initContent();

           if (Tools::getValue('spe')) {            
               $this->setTemplate(_PS_THEME_DIR_.'authentication2.tpl');
           }
      }
}

你好

你试过什么了吗?不,没有了。