浏览代码

added the path to parameters.ini

Fabien Potencier 14 年之前
父节点
当前提交
034222c5ff
共有 2 个文件被更改,包括 7 次插入6 次删除
  1. 5 4
      Controller/ConfiguratorController.php
  2. 2 2
      Resources/views/final.html.twig

+ 5 - 4
Controller/ConfiguratorController.php

@@ -82,9 +82,9 @@ class ConfiguratorController extends ContainerAware
         }
 
         return $this->container->get('templating')->renderResponse('SymfonyWebConfiguratorBundle::check.html.twig', array(
-            'majors' => $majors,
-            'minors' => $minors,
-            'url'    => $url,
+            'majors'  => $majors,
+            'minors'  => $minors,
+            'url'     => $url,
             'version' => file_get_contents($this->container->getParameter('kernel.root_dir').'/../VERSION'),
         ));
     }
@@ -96,8 +96,9 @@ class ConfiguratorController extends ContainerAware
 
         return $this->container->get('templating')->renderResponse('SymfonyWebConfiguratorBundle::final.html.twig', array(
             'parameters'  => $configurator->render(),
+            'ini_path'    => $this->container->getParameter('kernel.root_dir').'/config/parameters.ini',
             'is_writable' => $configurator->isFileWritable(),
-            'version' => file_get_contents($this->container->getParameter('kernel.root_dir').'/../VERSION'),
+            'version'     => file_get_contents($this->container->getParameter('kernel.root_dir').'/../VERSION'),
         ));
     }
 }

+ 2 - 2
Resources/views/final.html.twig

@@ -8,9 +8,9 @@
     <h3>
         <span>
             {% if is_writable %}
-                Your parameter.ini has been overwritten with these parameters:
+                Your parameters.ini has been overwritten with these parameters (in <em>{{ ini_path }}</em>):
             {% else %}
-                Your parameters.ini file is not writeable ! Here are the parameters you can copy and paste.
+                Your parameters.ini file is not writeable! Here are the parameters you can copy and paste in <em>{{ ini_path }}</em>:
             {% endif %}
         </span>
     </h3>