/** * Template * Helper function * @return (\Touchbase\View\Template) */ public function template(array $templateArgs = NULL) { return \Touchbase\View\Template::create($templateArgs)->setController($this); }
/** * 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; }