public function displayMain() { global $smarty; parent::displayMain(); if (Tools::isSubmit('contactUs')) { $this->postContact(); } $smarty->assign(array('errors' => $this->_errors, 'success' => $this->_success)); return $smarty->fetch('contact.tpl'); }
public function displayMain() { global $smarty; parent::displayMain(); if (Tools::isSubmit('submit')) { $this->postComment(); } $comments = $this->entity->getComments(); $smarty->assign(array('tags' => CMS::getCMSTags($this->entity->id), 'errors' => $this->_errors, 'success' => $this->_success, 'comments' => $comments, 'comments_nb' => count($comments), 'entity' => $this->entity)); return $smarty->fetch('cms.tpl'); }
<?php $dbPrefix = "classifieds_"; // for backward compatibility with 1.3 include "initdirs.php"; // For compatibility before 2.3.0: if (!file_exists($CONFIG_FILE_DIR . "/config.php")) { $CONFIG_FILE_DIR = "."; } include NOAH_APP . "/constants.php"; include NOAH_APP . "/error.php"; include NOAH_APP . "/include.php"; gorumMain(); View::displayMain();