symfony - Add # in the end of the url -


i need add #produc url. must lokoks loke trololo.com/buy#apple. how can in controller? can't understand must add it... read https://github.com/symfony/symfony/issues/3910, don't me. not exacly need

$this->get('router')->generate('store', array('#' => $product->getslug(), true), 

maybe faced it? please, me solved problem

you have answer in the link provided. fabien potencier (symfony2's creator) said need append anchor url manually.

there no need that. append after generating url.

like so:

$url = $this->get('router')->generate('store') . '#' . $product->getslug(); 

Comments

Popular posts from this blog

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -