public function indexAction()
    {
        $siteConfigurations = $this->siteConfigurationRepository->findAll();

        $sites = $this->siteRepository->findAll();
        $sitesWithConfiguration = [];
        foreach ($sites as $site) {
            $item = ['site' => $site];
            foreach ($siteConfigurations as $siteConfiguration) {
                if ($siteConfiguration->getSite() === $site) {
                    $item['configuration'] = $siteConfiguration;
                }
            }
            $sitesWithConfiguration[] = $item;
        }
        $this->view->assign('sitesWithConfiguration', $sitesWithConfiguration);

        $profiles = $this->getGroupedProfiles();
        $this->view->assign('groupedProfiles', $profiles);
    }
public function indexAction()
    {
        $siteConfigurations = $this->siteConfigurationRepository->findAll();

        $sites = $this->siteRepository->findAll();
        $sitesWithConfiguration = [];
        foreach ($sites as $site) {
            $item = ['site' => $site];
            foreach ($siteConfigurations as $siteConfiguration) {
                if ($siteConfiguration->getSite() === $site) {
                    $item['configuration'] = $siteConfiguration;
                }
            }
            $sitesWithConfiguration[] = $item;
        }
        $this->view->assign('sitesWithConfiguration', $sitesWithConfiguration);

        $profiles = $this->getGroupedProfiles();
        $this->view->assign('groupedProfiles', $profiles);
    }
public function indexAction ( ) { $ siteConfigurations = $ this -> siteConfigurationRepository -> findAll ( ) ; $ sites = $ this -> siteRepository -> findAll ( ) ; $ sitesWithConfiguration = [ ] ; foreach ( $ sites as $ site ) { $ item = [ 'site' => $ site ] ; foreach ( $ siteConfigurations as $ siteConfiguration ) { if ( $ siteConfiguration -> getSite ( ) === $ site ) { $ item [ 'configuration' ] = $ siteConfiguration ; } } $ sitesWithConfiguration [ ] = $ item ; } $ this -> view -> assign ( 'sitesWithConfiguration' , $ sitesWithConfiguration ) ; $ profiles = $ this -> getGroupedProfiles ( ) ; $ this -> view -> assign ( 'groupedProfiles' , $ profiles ) ; }
Show a list of sites and assigned GA profiles

@return void
Show a list of sites and assigned GA profiles