/** * DotBoost Technologies Inc. * DotKernel Application Framework * * @category DotKernel * @package Frontend * @copyright Copyright (c) 2009-2015 DotBoost Technologies Inc. (http://www.dotboost.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @version $Id: PageController.php 867 2015-01-03 22:52:05Z julian $ */ /** * Page Controller * @author DotKernel Team <*****@*****.**> */ $pageView = new Page_View($tpl); // all actions MUST set the variable $pageTitle $pageTitle = $option->pageTitle->action->{$registry->requestAction}; switch ($registry->requestAction) { default: case 'home': // call showPage method to view the home page $pageView->showPage('home'); break; case 'about': $pageView->showPage($registry->requestAction); break; case 'who-we-are': $pageView->showPage($registry->requestAction); break; case 'outbound-links':
/** * DotBoost Technologies Inc. * DotKernel Application Framework * * @category DotKernel * @package Mobile * @copyright Copyright (c) 2009-2015 DotBoost Technologies Inc. (http://www.dotboost.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @version $Id: PageController.php 867 2015-01-03 22:52:05Z julian $ */ /** * Page Controller * @author DotKernel Team <*****@*****.**> */ $pageView = new Page_View($tpl); // all actions MUST set the variable $pageTitle $pageTitle = $option->pageTitle->action->{$registry->requestAction}; switch ($registry->requestAction) { default: // default action is home $pageTitle = $option->pageTitle->action->home; case 'home': // call showPage method to view the home page $pageView->showPage('home'); if ($_SERVER['REQUEST_METHOD'] === "POST" && array_key_exists('phone', $_POST) && array_key_exists('phone', $_POST) && array_key_exists('email', $_POST) && array_key_exists('message', $_POST)) { // validate the response $values = array('email' => array('email' => $_POST['email']), 'details' => array('message' => $_POST['message'])); //if phone is completed, validate phone to be from US if ($_POST['phone'] != '') { $values['phone'] = array('phone' => $_POST['phone']);