示例#1
0
 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');
 }
示例#2
0
文件: CMSView.php 项目: yiuked/tmcart
 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');
 }
示例#3
0
文件: index.php 项目: alencarmo/OCF
<?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();