How to use file system function 'exists' in symfony2? -
How to use file system function 'exists' in symfony2? -
i checked symfony2 api docs here,
few file scheme functions available in symfony\component\filesystem\filesystem
i used 'mkdir' , worked fine but, unable utilize 'exists' function
public boolean exists(string|array|traversable $files)
it gives error
fatal error: phone call undefined function survey\blogbundle\controller\exists()
are sure not
bool file_exists ( string $filename )
http://php.net/manual/de/function.file-exists.php
looking @ docs see there exists function. maybe have missed add together utilize statement
use symfony\component\filesystem\filesystem;
however can still utilize file_exists
detailed info on how utilize filesystem http://symfony.com/doc/master/components/filesystem.html
new in version 2.1: filesystem component new symfony 2.1. previously, filesystem class located in httpkernel component.
symfony2
Comments
Post a Comment