/** * Import template file from component view. * * @param string $view view name, if empty use parameter from request * @param string $tpl template name, if empty use default.php */ static function importTpl($view = null, $tpl = null) { AImporter::importFile(AImporter::getViewBase($view) . 'tmpl' . DS . ($tpl ? $tpl : 'default') . '.php'); }