首先转到magento根目录,然后:
供应商/ magento /框架/视图/元素/tempalate/file/validator.php(不要完全复制此URL,只需遵循此路径)
使用任何编辑器打开此文件并更改此行
$realPath = $this->fileDriver->getRealPath($path); //you can comment this out
with this one
$realPath = str_replace('\\','/',$this->fileDriver->getRealPath($path));
then goto to
app / etc / di.xml
并搜索view_preprocessed
您会发现整行如下:
Magento \ Framework \ App \ View \ Asset \ MaterializationStrategy \ Symlink并用Copy更改Symlink