You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
26
extend/app_alipay/lotusphp_runtime/MVC/View.php
Executable file
26
extend/app_alipay/lotusphp_runtime/MVC/View.php
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* The View class
|
||||
*/
|
||||
class LtView
|
||||
{
|
||||
public $layoutDir;
|
||||
|
||||
public $templateDir;
|
||||
|
||||
public $layout;
|
||||
|
||||
public $template;
|
||||
|
||||
public function render()
|
||||
{
|
||||
if (!empty($this->layout))
|
||||
{
|
||||
include($this->layoutDir . $this->layout . '.php');
|
||||
}
|
||||
else
|
||||
{
|
||||
include($this->templateDir . $this->template . '.php');
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user