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();
     $this->SetQs('material', $this->GetQs('material') ? $this->GetQs('material') : 'Chrome Steel');
     $this->SetQs('size', $this->GetQs('size') ? $this->GetQs('size') : '30');
     $this->SetQs('balls_per', $this->GetQs('balls_per') ? $this->GetQs('size') : '100');
 }
Example #2
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();
 }