/** * Works on destroying table data */ public function uninstall() { die('serious?'); // clears all tables !!! \Model\User::setdown(); \Model\Payload::setdown(); \Model\Webot::setdown(); $cfg = new Config(); $cfg->clear('ACTIVE_DB'); $cfg->save(); \Base::instance()->clear('SESSION'); echo "Done Uninstalling Current Tables!"; }
public function uninstall() { die('serious?'); // clears all tables !!! \Model\Post::setdown(); \Model\Tag::setdown(); \Model\Comment::setdown(); \Model\User::setdown(); $cfg = new Config(); $cfg->clear('ACTIVE_DB'); $cfg->save(); \Base::instance()->clear('SESSION'); echo "goodbye!"; }