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
nico
piphone-front
Commits
e3ac5a29
Commit
e3ac5a29
authored
Nov 23, 2014
by
Mindiell
Browse files
Cache test deletion
parent
a35fe178
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/Main.php
View file @
e3ac5a29
...
...
@@ -6,12 +6,6 @@ class Main extends Controller {
* Presents campaign information and a random Contact
*/
function
home
(
$f3
,
$args
)
{
if
(
!
$f3
->
exists
(
'toto'
))
{
$f3
->
set
(
'toto'
,
time
(),
10
);
}
else
{
$f3
->
set
(
'toto'
,
$f3
->
get
(
'toto'
));
}
echo
$f3
->
get
(
'toto'
);
$f3
->
set
(
'campaign'
,
Api
::
get_campaign
());
$f3
->
set
(
'contact'
,
Api
::
get_contact
());
$f3
->
set
(
'block_content'
,
'home.html'
);
...
...
app/config.php.sample
View file @
e3ac5a29
<?php
/* Configuration file for Campaign manager */
define
(
"CAMPAIGN_ID"
,
"1"
);
define
(
"API_BASE"
,
"http://localhost/restapi/"
);
/* TODO : remove this in production ;) */
error_reporting
(
E_ALL
|
E_WARNING
);
...
...
templates/home.html
View file @
e3ac5a29
...
...
@@ -2,8 +2,6 @@
<h1>
{{ _("PiPhone") }}
</h1>
<h2>
{{ _("Call Contact for free - and make yourself heard") }}
</h2>
{{ @toto }}
<section>
<repeat
group=
"{{ @languages }}"
value=
"{{ @language }}"
>
<a
href=
"/lang/{{ @language.iso }}"
>
{{ @language.name }}
</a>
|
...
...
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