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:
@ -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:
|
||||
|
Reference in New Issue
Block a user