예제 #1
0
 public function sendResponse()
 {
     $this->sendHeader();
     if ($this->renderer != NULL) {
         $this->renderer->render();
     }
 }
예제 #2
0
 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;
 }
예제 #3
0
 public function __construct($result, $file_name) {
     parent::__construct($result);
     $template_name = 'fresh';
     $this->file_path = __ROOT__ . "/templates/"  . $template_name . "/email/" . $file_name.".php";
 }
예제 #4
0
 public function __construct($result, $callback = null, $code = 200)
 {
     parent::__construct($result, $code);
     $this->callback = $callback;
 }