alexandrieb Posted August 18, 2016 Share Posted August 18, 2016 Bonjour, Je souhaiterais lister le contenu d'un dossier se trouvant dans un module. Pour cela, j'utilise la fonction $dir = $this->_path.'archives';$iter = new DirectoryIterator( $dir);foreach($iter as $file ) {if ( !$file->isDot() ) {echo $file->getFilename();}} Mais voici le message d'erreur qui apparait.... Uncaught exception 'UnexpectedValueException' with message 'DirectoryIterator::__construct(/modules/cataloggenerator/archives): failed to open dir: No such file or directory' Merci pour votre aide Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now