Bonjour,
je chercher a faire un bouton qui ferais un cache:clear.
voici le controleur:
1 2 3 4 5 6 7 8 9 10
|
public function testAction()
{
$input = new StringInput(null);
$output = new NullOutput();
$command = new CacheClearCommand();
$command->setContainer($this->container);
$command->run($input, $output);
} |
voici mon code erreur:
Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /Applications/MAMP/htdocs/bas3/app/cache/dev/classes.php line 271
j"ai essayé d' ajouter :
1 2
| / $session = new Session();
//$session->clear(); |
a ma fonction.
Mais la je suis un peu a cour d'idée.
Merci a l'avance de votre aide
j'ai essayer php_flag session.auto_start 0 dans le .htaccess
1 2 3 4 5 6 7 8 9 10
| # Use the front controller as index file. It serves as fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# startpage (path "/") because otherwise Apache will apply the rewritting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
DirectoryIndex app.php
php_flag session.auto_start 0
<IfModule mod_rewrite.c>
RewriteEngine On
....... |
Merci d'avance a votre aide....
Partager