Example #1
0
 public function buildStaticPage(array $data, $template, $filePath)
 {
     if (empty($data)) {
         trigger_error('$data dose not empty!');
         return false;
     }
     if (empty($template)) {
         trigger_error('$template dose not empty!');
         return false;
     }
     if (empty($filePath)) {
         trigger_error('$filePath dose not empty!');
         return false;
     }
     $output = new ZOL_Response();
     $output->add($data);
     $output->template = $template;
     $view = new ZOL_View_Simple($output);
     ZOL_File::write($view->render(), $filePath);
     return false;
 }