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
1301927f
Commit
1301927f
authored
Nov 22, 2014
by
Mindiell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache test in order to cache contacts list on piphone instance
parent
d6336284
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
app/Main.php
app/Main.php
+6
-1
app/config.ini
app/config.ini
+3
-0
templates/home.html
templates/home.html
+2
-0
No files found.
app/Main.php
View file @
1301927f
...
...
@@ -6,10 +6,15 @@ 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.ini
View file @
1301927f
...
...
@@ -5,6 +5,9 @@ AUTOLOAD=app/
; Folder containing templates
UI
=
templates/
; Cache
CACHE
=
true
; Debug level
DEBUG
=
3
...
...
templates/home.html
View file @
1301927f
...
...
@@ -2,6 +2,8 @@
<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
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