@@ 84-86 (lines=3) @@ | ||
81 | $form = $builder->getForm(); |
|
82 | $form->setData($data); |
|
83 | ||
84 | if (file_exists($configFile.'.php')) { |
|
85 | file_put_contents($configFile.'.php', sprintf('<?php return %s', var_export($config, true)).';'); |
|
86 | } |
|
87 | if (file_exists($configFile.'.yml')) { |
|
88 | file_put_contents($configFile.'.yml', Yaml::dump($config)); |
|
89 | } |
|
@@ 103-105 (lines=3) @@ | ||
100 | ||
101 | $config['admin_route'] = $data['admin_route_dir']; |
|
102 | ||
103 | if (file_exists($pathFile.'.php')) { |
|
104 | file_put_contents($pathFile.'.php', sprintf('<?php return %s', var_export($config, true)).';'); |
|
105 | } |
|
106 | if (file_exists($pathFile.'.yml')) { |
|
107 | file_put_contents($pathFile.'.yml', Yaml::dump($config)); |
|
108 | } |
@@ 82-84 (lines=3) @@ | ||
79 | $config['front_urlpath'] = $config['root_urlpath'].RELATIVE_PUBLIC_DIR_PATH.'/template/'.$templateCode; |
|
80 | $config['block_realdir'] =$config['template_realdir'].'/Block'; |
|
81 | ||
82 | if (file_exists($file.'.php')) { |
|
83 | file_put_contents($file.'.php', sprintf('<?php return %s', var_export($config, true)).';'); |
|
84 | } |
|
85 | if (file_exists($file.'.yml')) { |
|
86 | file_put_contents($file.'.yml', Yaml::dump($config)); |
|
87 | } |