Commit 0fff81d9 authored by nepski's avatar nepski

correction feedback

parent cff95262
/tmp
app/config.php
.idea/
\ No newline at end of file
.idea/
.htaccess
\ No newline at end of file
......@@ -5,17 +5,22 @@ class Main extends Controller {
Main page
*/
function show($f3,$args) {
echo "TOTO";
$f3->set('block_content','home.html');
}
function feedbackform($f3, $args) {
$f3->set('block_content', 'feedbackform.html');
if ($f3->get('VERB') == 'GET'){
//create call
//start call
//end call
$f3->set('block_content', 'feedbackform.html');
}
elseif ($f3->get('VERB') == 'POST'){
//send feedback to campaign
$f3->set('block_content', 'thankyou.html');
}
}
function rcvfeedbackform($f3, $args) {
//send feedback to campaign
$f3->set('block_content', 'thankyou.html');
}
};
......@@ -2,6 +2,5 @@
; Main site
GET @home:/=Main->show
GET @feedback:/feedback=Main->feedbackform
POST @postfeedback:/feedback=Main->rcvfeedbackform
GET|POST @feedback:/feedback=Main->feedbackform
<p>thank you!</p>
\ No newline at end of file
<p>thank you!</p>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment