public function index() { if ($this->URLSegment == "home") { if (!CompleteSetupRecord::get()->count()) { $this->redirect('/dev/tasks/CleanEcommerceTables/?flush=all'); } } return array(); }
private function completeall() { $obj = new CompleteSetupRecord(); $obj->CompletedSetup = 1; $obj->write(); DB::alteration_message("----------------------------- COMPLETE --------------------------- "); }