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 | |
// Just keep letters and numbers. | |
// Replace everything else with dash, even spaces. | |
//------------------------------------------------------------------------------ | |
$path = dirname(__FILE__); | |
$file = 'Dos elefantes.mp4'; // Already exists in server | |
$filename = substr($file, 0, strrpos($file, '.')); |
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
{% for label, flashes in app.session.flashbag.all %} | |
{% for flash in flashes %} | |
<div class="alert alert-{{ label }}"> | |
{{ flash }} | |
</div> | |
{% endfor %} | |
{% endfor %} |
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
# src/Acme/DemoBundle/Security/Authentication/Handler/LoginSuccessHandler.php | |
<?php | |
namespace Acme\DemoBundle\Security\Authentication\Handler; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\Routing\Router; | |
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; | |
use Symfony\Component\Security\Core\SecurityContext; |
NewerOlder