output smarty and codeigniter

ferz721

Новичок
Есть контроллер по умолчанию, который выводит основной вид main.tpl. есть другой контроллер выводящий другую страницу edit.tpl.
PHP:
class Default_view extends Smarty
{
    public function __construct()
    {
        parent::__construct();
    }
    
    public function write()
    {
        $this->display('main.tpl');
    }
}

$smarty = new Default_view();
$smarty->write();
другой вид выводящийся другим контроллером
PHP:
class Edit extends Smarty
{
    public function __construct()
    {
        parent::__construct();
    }
    
    public function write()
    {
        $this->display('editter/edit.tpl');
    }
}

$ed = new Editter();
$ed->write();
запрос
В main.tpl нет подключений edit.tpl.
Почему в выводе два шаблона, edit.tpl и main.tpl???
 

ferz721

Новичок
первым выводиться контроллер edit, потом default вид, потом файл edit.tpl.
 

ferz721

Новичок
clearcache() и clearcompillertemplates() непомогают!!!
нашёл, в был подключен в include default_view:)
 
Сверху