login = $this->so->fo->getFieldDataId(0); $o->name = $this->so->fo->getFieldDataId(1); $o->email = $this->so->fo->getFieldDataId(2); $o->password = $this->so->fo->getFieldDataId(3); $o->location = $this->so->fo->getFieldDataId(5); $o->save(); $this->so->sendBaseline($this->so->co,GREEN.'ACCOUNT CREATED, PRESS '.HASH.' TO CONTINUE...'.WHITE); $this->state['action'] = ACTION_NEXT; // Add to CUG 0 $o->cugs()->attach(0); } catch (\Exception $e) { $this->so->sendBaseline($this->so->co,RED.'SOMETHING WENT WRONG...'.WHITE); $this->so->log('error',$e->getMessage()); $this->state['action'] = ACTION_RELOAD; } } }