/** * Entry view page for mobile app */ function actionMobileEntry($iId) { bx_import('BxDolMobileTemplate'); $oMobileTemplate = new BxDolMobileTemplate($this->_oConfig, $this->_oDb); $oMobileTemplate->pageStart(); $aParams = array('sample_type' => 'id', 'id' => (int) $iId); $aEntry = $this->_oDb->getEntries($aParams); if (empty($aEntry)) { $oMobileTemplate->displayPageNotFound(); return; } echo '<h1>' . $aEntry['caption'] . '</h1>'; echo getLocaleDate($aEntry['when_uts'], BX_DOL_LOCALE_DATE); echo $aEntry['content']; $oMobileTemplate->pageCode($aEntry['caption']); }