Browse Source

Correctif backoffice

master
Fab 4 years ago
parent
commit
82e6539c77
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      ShopBundle/Controller/Backend/MerchantController.php

+ 7
- 3
ShopBundle/Controller/Backend/MerchantController.php View File

$user->setMerchant($merchant); $user->setMerchant($merchant);
$em->persist($user); $em->persist($user);
$em->flush(); $em->flush();
dump($merchant);


$niche = $merchant->getTitle();
$this->utils->addFlash('warning', "Vous êtes maintenant sur le hub de ".$merchant->getId());

if($merchant->getDevAlias() =='besancon') {
$this->utils->addFlash('warning', "Vous êtes maintenant sur le hub de Besançon");
}else{
$this->utils->addFlash('warning', "Vous êtes maintenant sur le hub de Belfort");

}


return $this->redirect($merchant->getMerchantConfig('url').'admin/dashboard') ; return $this->redirect($merchant->getMerchantConfig('url').'admin/dashboard') ;
} }

Loading…
Cancel
Save