/** * Function adds the new FAQ * at the admin side * * @return array */ function add() { include_once 'classes/Core/CFaq.php'; include_once 'classes/Display/DFaq.php'; $result = Core_CFaq::add(); Model_MFaq::addFaq($result); $_SESSION['msgfaqadded'] = 'Faq Added successfully!'; header('Location:?do=faq'); exit; }