Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
piphone-front
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
0fff81d9
Commit
0fff81d9
authored
Nov 22, 2014
by
nepski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction feedback
parent
cff95262
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
.gitignore
.gitignore
+2
-1
app/Main.php
app/Main.php
+11
-6
app/routes.ini
app/routes.ini
+1
-2
templates/thankyou.html
templates/thankyou.html
+2
-1
No files found.
.gitignore
View file @
0fff81d9
...
...
@@ -2,3 +2,4 @@
app/config.php
.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
)
{
if
(
$f3
->
get
(
'VERB'
)
==
'GET'
){
//create call
//start call
//end call
$f3
->
set
(
'block_content'
,
'feedbackform.html'
);
}
function
rcvfeedbackform
(
$f3
,
$args
)
{
elseif
(
$f3
->
get
(
'VERB'
)
==
'POST'
){
//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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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