Commit 0fff81d9 authored by nepski's avatar nepski

correction feedback

parent cff95262
/tmp /tmp
app/config.php app/config.php
.idea/ .idea/
\ No newline at end of file .htaccess
\ No newline at end of file
...@@ -5,17 +5,22 @@ class Main extends Controller { ...@@ -5,17 +5,22 @@ class Main extends Controller {
Main page Main page
*/ */
function show($f3,$args) { function show($f3,$args) {
echo "TOTO";
$f3->set('block_content','home.html'); $f3->set('block_content','home.html');
} }
function feedbackform($f3, $args) { 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 @@ ...@@ -2,6 +2,5 @@
; Main site ; Main site
GET @home:/=Main->show GET @home:/=Main->show
GET @feedback:/feedback=Main->feedbackform GET|POST @feedback:/feedback=Main->feedbackform
POST @postfeedback:/feedback=Main->rcvfeedbackform
<p>thank you!</p> <p>thank you!</p>
\ No newline at end of file
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