控制器:
<?php
class ControllerSalesnewCalendar extends Controller{
public function index(){
$this->template = 'sales/newCalendar.tpl';
$this->response->setoutput($this->render());
}
}
?>
查看:
<?php
error_reporting(1);
echo $header;
?>
<iframe src="http://calendar.ubpbackyard.com/" height="1000" width="2000"
scrolling="no"></iframe>
<?php echo $footer; ?>
视图为空白。 OpenCart Gurus,你能帮助我吗?
答案 0 :(得分:0)
如果您正在使用opencart 2.3,请尝试使用
<强>控制器强>
3
}
查看强>
class ControllerSalesnewCalendar extends Controller{
public function index(){
$data['header'] = $this->load->controller('common/header');
$data['footer'] = $this->load->controller('common/footer');
$this->response->setOutput($this->load->view('sales/newCalendar', $data));
}