src/JaztecAdmin/Direct/Framework.php
public function getViews(array $values)
    {
        $config = $this->getServiceLocator()->get('Config');
        if (!isset($values['controller'])) {
            throw new Exception('No controller data received.');
        }
        $controller = $values['controller'];
        if (!isset($config['jaztec_admin']['modules']['views'][$controller])) {
            return array();
        }
        $paths  = $config['jaztec_admin']['modules']['views'][$controller]['paths'];

        return $this->getFiles($paths, 'view');
    }
public function getViews(array $values)
    {
        $config = $this->getServiceLocator()->get('Config');
        if (!isset($values['controller'])) {
            throw new Exception('No controller data received.');
        }
        $controller = $values['controller'];
        if (!isset($config['jaztec_admin']['modules']['views'][$controller])) {
            return array();
        }
        $paths  = $config['jaztec_admin']['modules']['views'][$controller]['paths'];

        return $this->getFiles($paths, 'view');
    }
public function getViews ( array $ values ) { $ config = $ this -> getServiceLocator ( ) -> get ( 'Config' ) ; if ( ! isset ( $ values [ 'controller' ] ) ) { throw new Exception ( 'No controller data received.' ) ; } $ controller = $ values [ 'controller' ] ; if ( ! isset ( $ config [ 'jaztec_admin' ] [ 'modules' ] [ 'views' ] [ $ controller ] ) ) { return array ( ) ; } $ paths = $ config [ 'jaztec_admin' ] [ 'modules' ] [ 'views' ] [ $ controller ] [ 'paths' ] ; return $ this -> getFiles ( $ paths , 'view' ) ; }
Returns all views connected to a controller.

@param  array $values
@return array An array with the allowed views.
Returns all views connected to a controller .