public function renderContent() { if ($this->commands) { $cmd = new Commands(); $cmd->executeCmds($this->commands); } return null; }
public function proccessForm() { // submit if ($this->hasSubmitted()) { foreach ($this->fields as $field) { $field instanceof Field; $field->proccessField($this); } } else { if ($this->onLoad) { $cmd = new Commands($this); $cmd->executeCmds($this->onLoad); } } }