nette – Finder – vyhledání souborů a zobrazení vlastností

  use Nette\Utils\Finder;foreach (Finder::findFiles(‚*.jpg‘, ‚*.png‘)->in($dir) as $key => $file) {      dump(‚getPath: ‚ . $file->getPath());      dump(‚getFileName: ‚ . $file->getFileName());      dump(‚getBasename: ‚ . $file->getBasename());      dump(‚getCTime: ‚ . $file->getCTime());      dump(‚getExtension: ‚ . $file->getExtension());      dump(‚getFileInfo: ‚ . $file->getFileInfo());      dump(‚getFilename: ‚ . $file->getFilename());      dump(‚getGroup: ‚ . $file->getGroup());      dump(‚getInode: ‚ . $file->getInode());      //dump(‚getLinkTarget: ‚ . $file->getLinkTarget());      dump(‚getMTime: ‚ . $file->getMTime());      dump(‚getOwner:…

nette – Nastavení htaccess, pokud www není root

  Order Allow,DenyAllow from allRewriteEngine OnRewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]RewriteRule ^ https://www.EXAMPLE.cz%{REQUEST_URI} [R=301,L]RewriteCond %{HTTP_HOST} ^(www\.)?EXAMPLE\.cz$RewriteRule ^$ /www/ [L]RewriteCond %{HTTP_HOST} ^(www\.)?EXAMPLE\.cz$RewriteRule (.*) /www/$1 [L]