dongpao1926 2014-03-19 16:17
浏览 53
已采纳

如何手动在symfony2中安装资产?

When I try to install assets using this command: assets:install web --symlink

I get this expcention:

[InvalidArgumentException]
The symlink() function is not available on your system. You need to install
the assets without the --symlink option.

That is because Im using windows XP. So I tried to solve this installing Link Shell Extension: http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html#introduction

and now the problem is that I do not wich files need to be a symbolic link.

I tried doing the folder "MyBundle/resources/public" a symbolic to the folder "web" of my project, and it does not work.

  • 写回答

1条回答 默认 最新

  • douxia2137 2014-03-19 16:34
    关注

    The windows system does not support symbolic links. It copy / paste files instead. So you can only used this command :

    assets:install web 
    

    or

    assets:install 
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?