Sign in

Qiang Wei / yangzhou · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Forks
  • Network
  • yangzhou
  • utils
  • alipay
  • lotusphp_runtime
  • MVC
  • View.php
  • 扬州景区讲解器后台代码;
    9bcb1d75
    weiqiang authored
    2019-01-10 14:41:09 +0800  
    Browse Files »
View.php 329 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 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');
		}
	}
}