streaming-website/view/feedback.php

21 lines
370 B
PHP

<?php
if(!$conference->hasFeedback())
throw new NotFoundException('Feedback is disabled');
$info = $_POST;
$feedback = $conference->getFeedback();
if($feedback->validate($info))
{
$feedback->store($info);
header('Content-Type: application/json');
echo json_encode(true);
exit;
}
echo $tpl->render(array(
'page' => 'feedback',
'title' => 'Give Feedback',
));