Smarty error if change path in custom module

Hi!

  1. I created custom module view in view.detail.php

In that addon I reinitialized a template set, that I take from base place

public function preDisplay()
{

$this->dv->setup($this->module, $this->bean, $metadataFile, get_custom_file_if_exists(‘modules/cust_basetest/tpls/detailview/DetailView.tpl’));

}
  1. If I copy templates from include/DetailView/ to module path, view model brokes. In DetailView.tpl I see that header not loaded, but how it load from another path?

I mean this block :

{{include file=$headerTpl}}
{sugar_include include=$includes}

<div id="{{$module}}_detailview_tabs" {{if $useTabs}} class="yui-navset detailview_tabs" {{/if}}

My question is where $headerTpl , $includes are assigned ? And how reasign them to another path?