title: Symfony 1.4 url_for empty string behavior
body: <p>I'm working on a Symfony 1.4 project and when I do this:</p>
  <pre><code>url_for('');
  </code></pre>
  <p>I'm expecting to get the URL for the <code>index.php</code> controller or at least <code>http://domain/</code> but I'm getting this:</p>
  <pre><code>/sfTCPDF
  </code></pre>
  <p><code>sfTCPDF</code> is a plugin that I have in this project that in my <code>config/ProjectConfiguration.class.php</code> is used like:</p>
  <pre><code>class ProjectConfiguration extends sfProjectConfiguration {
      public function setup() {
          $this-&gt;enablePlugins('sfTCPDFPlugin');
      }
  }
  </code></pre>
  <p>When I disable the plugin I get the expected result:</p>
  <pre><code>$url = url_for('');
  &gt; /
  </code></pre>
  <p>Or when I use it like this (Doesn't matter if the plugin is enabled or not):</p>
  <pre><code>$url = url_for('/');
  &gt; /
  </code></pre>
  <p>I don't understand why the plugin is causing (or even if it's the plugin fault).</p>
  <p>Any suggestions? I can search &amp; replace the entire project for <code>url_for('')</code> and put the <code>'/'</code>
  But I really want to understand why this is happening.</p>
  <p><strong>After some research:</strong>
  I found out that when the <code>url_for</code> function is called, the procedure is the next:</p>
  <ul>
  <li><code>lib/vendor/symfony/lib/helper/UrlHelper.php url_for()</code></li>
  <li><code>lib/vendor/symfony/lib/helper/UrlHelper.php url_for2()</code></li>
  <li><code>lib/vendor/symfony/lib/helper/UrlHelper.php url_for1()</code></li>
  <li><code>lib/vendor/symfony/lib/controller/sfWebController.class.php gen_url()</code></li>
  <li><code>lib/vendor/symfony/lib/routing/sfRoute.class.php generate()</code></li>
  </ul>
  <p>And in the last one it gets the <code>$this-&gt;pattern</code> here is where the pattern is <code>sfTCPDF/:action</code></p>
  <p>which means that some routing is playing. Continuing my research i found out that the plugin has a <code>routing.yml</code> with:</p>
  <pre><code>sfTCPDF:
      url:   /sfTCPDF/:action
      param: { module: sfTCPDF, action: test }
  </code></pre>
  <p>If I delete this routing everything works as expected.</p>
  <p>Now the question is: when do the plugin creates a routing object with the pattern of <code>sfTCPDF</code> and why?</p>