Bonjour,
je chercher a faire un bouton qui ferais un cache:clear.
voici le controleur:
voici mon code erreur:Code:
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); }
j"ai essayé d' ajouter :Code: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
a ma fonction.Code:
1
2 / $session = new Session(); //$session->clear();
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
Merci d'avance a votre aide....Code:
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 .......