public function getSiteEnvironmentsAction()
    {
        $json = array();
        $siteId = (int) $this->params()->fromQuery('siteId');
        
        $domainTable = $this->getServiceLocator()->get('MelisCoreTablePlatform');
        $domainData = $domainTable->fetchAll();
        $domainData = $domainData->toArray();
        
        if($domainData) {
            foreach($domainData as $domainValues) {
                $json[] = $domainValues['plf_name'];
            }
        }
        
        return new JsonModel(array('data' => $json));
    }
public function getSiteEnvironmentsAction()
    {
        $json = array();
        $siteId = (int) $this->params()->fromQuery('siteId');
        
        $domainTable = $this->getServiceLocator()->get('MelisCoreTablePlatform');
        $domainData = $domainTable->fetchAll();
        $domainData = $domainData->toArray();
        
        if($domainData) {
            foreach($domainData as $domainValues) {
                $json[] = $domainValues['plf_name'];
            }
        }
        
        return new JsonModel(array('data' => $json));
    }
public function getSiteEnvironmentsAction ( ) { $ json = array ( ) ; $ siteId = ( int ) $ this -> params ( ) -> fromQuery ( 'siteId' ) ; $ domainTable = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreTablePlatform' ) ; $ domainData = $ domainTable -> fetchAll ( ) ; $ domainData = $ domainData -> toArray ( ) ; if ( $ domainData ) { foreach ( $ domainData as $ domainValues ) { $ json [ ] = $ domainValues [ 'plf_name' ] ; } } return new JsonModel ( array ( 'data' => $ json ) ) ; }
Fetching all Core Platforms
@return Json
Fetching all Core Platforms