} elseif ($action == 'insert' and $this->perm >= self::WRITE) {
if (!$this->table->insert($_POST,$info)) $this->error('insert: '.print_r($info,true));
header('Location: '.$this->table->base.'/');
+ $this->page($info);
} elseif ($action == 'update' and $this->perm >= self::WRITE) {
# NB 19.12.16: TODO NOT WORKING with update using replace
if (!$this->table->replace($_POST,$info)) $this->error('update: '.print_r($info,true));
header('Location: '.$this->table->base.'/');
+ $this->page($info);
} elseif ($action == 'rm' and $this->perm >= self::DELETE) {
if (!$this->table->delete($_POST,$info)) $this->error('rm: '.print_r($info,true));
header('Location: '.$this->table->base.'/');
+ $this->page($info);
} else {