Example #1
0
 public function Setup()
 {
     Debug::Set('Application setup initiated');
     $this->SetPageRenderStartTime();
     $this->SetTitle();
     $this->SetCopyright();
     $this->SetGetPost();
     $this->SetAllQs();
     $this->SetPage();
     $this->SetMainJs();
     $this->SetPageJs();
     $this->SetMainCss();
     $this->SetPageCss();
     Database::Setup();
     if (Database::GetConnectionStatus() == 'ok') {
         Sql::SetQueryName('all_people');
         Sql::ExecuteSql(' SELECT * FROM don_people ORDER BY 1 ASC ; ');
         Sql::SetQueryName('all_products');
         Sql::SetSql(' SELECT * FROM don_products ORDER BY 2 DESC ; ');
         Sql::Execute();
     }
     //$this->SetPageRenderFinishTime();
 }