Index: kernel/processors/main_processor.php =================================================================== --- kernel/processors/main_processor.php (revision 13559) +++ kernel/processors/main_processor.php (working copy) @@ -127,7 +127,7 @@ */ function T($params) { - //by default link to current template + // by default link to current template $template = $this->SelectParam($params, 't,template'); $prefix = array_key_exists('prefix', $params) ? $params['prefix'] : ''; @@ -146,6 +146,19 @@ return $this->T($params); } + /** + * Performs redirect to provided template/url + * + * @param Array $params + * @return string + */ + function Redirect($params) + { + $this->Application->Redirect('external:' . $this->Link($params)); + + return ''; + } + function Env($params) { $t = $params['template'];