1

我正在起诉 Symfony 1.4 并且在添加带有“#”(哈希)符号的路由时遇到问题

我希望路线例如:

mydomain.com/#example

它应该导致:

module : example
action : index

我应该如何使它工作?

4

1 回答 1

0

文档

<?php echo link_to('my article', 'article/read', array(
  'query_string' => 'title=Finance_in_France',
  'anchor' => 'foo'
)) ?>
=> <a href="/article/read?title=Finance_in_France#foo">my article</a>

<?php echo link_to('my article', 'article/read?title=Finance_in_France#foo') ?>
=> <a href="/routed/url/to/Finance_in_France#foo">my article</a>
于 2012-11-14T08:27:23.217 回答