Rewrite standart Exception for just return error. Old functionality of showing statical pages was splitted for two new exceptions: StaticPageException for showing static templates and DynamicPageException for invoking Actions classes

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@30 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
aterekhov
2008-12-18 16:12:06 +00:00
parent 00650a83d0
commit b0094984e5
4 changed files with 45 additions and 3 deletions

View File

@ -42,6 +42,7 @@ define('STATIC_TPL_PATH', TPL_PATH.'/static');
define('DECORATOR_POSTFIX', 'Decorator');
define('MODEL_POSTFIX', 'Model');
define('ACTION_POSTFIX', 'Action');
define('EXCEPTION_POSTFIX', 'Exception');
define('TIME_NOW', time());
@ -77,6 +78,7 @@ function __autoload($name)
switch ($type) {
case $name:
case EXCEPTION_POSTFIX:
require(CORE_PATH.'/'.$name.'.class.php');
break;
case ACTION_POSTFIX: