Aimeos\ShopBundle\Controller\AdminController::indexAction PHP Méthode

indexAction() public méthode

Returns the initial HTML view for the admin interface.
public indexAction ( ) : Response
Résultat Response Generated HTML page for the admin interface
    public function indexAction()
    {
        if ($this->isAdmin()) {
            $params = array('site' => 'default', 'resource' => 'dashboard', 'lang' => 'en');
            return $this->redirect($this->generateUrl('aimeos_shop_jqadm_search', $params));
        }
        $param = array('error' => '', 'username' => '');
        if ($this->has('security.authentication_utils')) {
            $auth = $this->get('security.authentication_utils');
            $param['error'] = $auth->getLastAuthenticationError();
            $param['username'] = $auth->getLastUsername();
        }
        return $this->render('AimeosShopBundle:Admin:index.html.twig', $param);
    }
AdminController