ferz721
Новичок
Есть контроллер по умолчанию, который выводит основной вид main.tpl. есть другой контроллер выводящий другую страницу edit.tpl.
другой вид выводящийся другим контроллером
запрос
Почему в выводе два шаблона, edit.tpl и main.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???