Created
October 5, 2012 15:13
-
-
Save JoshuaEstes/3840410 to your computer and use it in GitHub Desktop.
Symfony2 Redirect with hashtag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\BlogBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
class AttachmentController extends Controller | |
{ | |
public function redirectAction() | |
{ | |
return $this->redirect( | |
$this->generateUrl('homepage') . '#hashtag' | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment