Example #1
0
 public function sendAction()
 {
     //принимаем id дива и тело сообщения, отправляем ReporterModel
     $fc = FrontController::getInstance();
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
         $id = $fc->clearData($_POST['id'], 'int');
         $data = $fc->clearData($_POST['answer']);
     }
     $model = new ReporterModel();
     $model->saveData($id, $data);
 }
Example #2
0
<script type="text/javascript" src="http://orbis/js/reporter.js"></script>
<?php 
$model = new ReporterModel();
$model->showAll();