Symfony Plugin Symlinks

First a little backstage information: our programmers are developing under the Linux distribution Ubuntu, and our graphical expert uses Windows for Photoshop purposes. Because we work most of the time with multiple users on one project, we use the version control system Subversion, which offers clients for different operating systems…so far, so good.

When installing plugins in your Symfony application, the installation process sometimes places a symbolic link in the public web directory, to the plugin web directory. In Linux those symlinks work just fine, but when a collegue checks out the code in Windows, those symlinks are degrated to ordinary files without extensions. Windows does not know what to do with them, and your Symfony plugin actions and web files are not catchable by the application. Result: ajax calls are not working, extra css files are not correctly included,…

You have two options to resolve this problem:

  • first, you can install the plugin again under Windows, but that’s doing the same thing twice.
  • Second solution: copy the plugin web directory manually to your applications web dir. Clear the cache with “symfony cc” and refresh your page. The webpage should have all it’s ajax functionalities and css files.

Now the webdesigner can start to work…

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses

December 17, 2008
Danny

This looks like it is great! Is it finished? Is the source code available? Our office could definitely use something like this!


December 30, 2008

in symfony 1.2 you can use ./symfony publish:assets that does exactly what this post explains