Moved fatalError() from Controller to Error class.

* Renamed the method to fatal().

 * Added Error class, but I may be factoring it out and replacing it with strong dependency of PHP built-in Exceptions.

 * Cleaned up some other stuff too.
This commit is contained in:
Josh Sherman 2010-03-30 22:28:20 -04:00
parent b1d7ef7645
commit ea6930bc23
4 changed files with 66 additions and 34 deletions

View file

@ -72,6 +72,10 @@ class Config
return true;
}
else
{
Error::fatal('config.ini is either missing or unreadable');
}
}
/**