public function sendResponse() { $this->sendHeader(); if ($this->renderer != NULL) { $this->renderer->render(); } }
function __construct($result, $templateName, $pages, $scripts = NULL, $styleSheets = NULL) { parent::__construct($result); $user = PCModelUser::getCurrentUser(); if (isset($user)) { $this->result['user'] = $user; } $this->scripts = $scripts == NULL ? array() : $scripts; $this->styleSheets = $styleSheets == NULL ? array() : $styleSheets; $this->templateName = $templateName; $this->pages = $pages; }
public function __construct($result, $file_name) { parent::__construct($result); $template_name = 'fresh'; $this->file_path = __ROOT__ . "/templates/" . $template_name . "/email/" . $file_name.".php"; }
public function __construct($result, $callback = null, $code = 200) { parent::__construct($result, $code); $this->callback = $callback; }