Code: Select all
$actions = array("create", "edit", "_create", "update", "delete", "complete");
if(in_array($_POST['action'], $actions))
$this->$_POST['action']();
else
$this->index();Moderator: General Moderators
Code: Select all
$actions = array("create", "edit", "_create", "update", "delete", "complete");
if(in_array($_POST['action'], $actions))
$this->$_POST['action']();
else
$this->index();