Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
0fff81d9
Commit
0fff81d9
authored
Nov 22, 2014
by
nepski
Browse files
correction feedback
parent
cff95262
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
0fff81d9
/tmp
app/config.php
.idea/
\ No newline at end of file
.idea/
.htaccess
\ No newline at end of file
app/Main.php
View file @
0fff81d9
...
...
@@ -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'
);
}
};
app/routes.ini
View file @
0fff81d9
...
...
@@ -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
templates/thankyou.html
View file @
0fff81d9
<p>
thank you!
</p>
\ No newline at end of file
<p>
thank you!
</p>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment