コード例 #1
0
ファイル: Controller.php プロジェクト: touchbase/touchbase
 /**
  *	Template
  *	Helper function
  *	@return (\Touchbase\View\Template)
  */
 public function template(array $templateArgs = NULL)
 {
     return \Touchbase\View\Template::create($templateArgs)->setController($this);
 }
コード例 #2
0
 /**
  *	Construct Body
  *	@return string
  */
 protected function constructBody()
 {
     $body = "\r\n<!-- START CONTENT -->\r\n";
     $body .= Template::create(["BODY" => $this->body])->setController($this->controller)->renderWith($this->layout);
     $body .= "\r\n<!-- END CONTENT -->\r\n";
     $body .= "\r\n<!-- JAVASCRIPT INCLUDES -->\r\n";
     $body .= implode("", $this->assets()->scripts());
     return $body;
 }