..app/config.ini' is missing or is not readable

Notice: This thread is very old.
newPOPE
Member | 648
+
0
-

Hi,

I installed Sandbox from download page. I changed main dirs like this

/www
	index.php
/application
	/app
	/temp
	/...
code--/

I rewrite all paths for APP instead in bootstrap.php (forget on it) and Debugger throw exception with message in subject.

I expected something like this .../config.neon or .../config.neon or config.ini. I know, it is about back compatibility.

Bug or Feature? ;-)

Line 82 in Nette\Configurator

<?php
	$file = preg_replace('#\.neon$#', '.ini', $file); // back compatibility
?>

Last edited by newPOPE (2011-08-11 11:39)

arron
Member | 464
+
0
-

Not enaught information. Can you post your index.php and bootstrap.php?

Jan Voráček
Member | 90
+
0
-

@arron: I think it's not meant as a request for advice. It would be better to throw an exception, as newPOPE writes.

The problem is on lines 81–83 in Nette\Configurator – if there is no file .neon, use .ini. After that is thrown an exception in Nette\Config\IniAdapter because of absence the ini file.