Commit 1301927f authored by Mindiell's avatar Mindiell

Cache test in order to cache contacts list on piphone instance

parent d6336284
......@@ -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');
}
};
......@@ -5,6 +5,9 @@ AUTOLOAD=app/
; Folder containing templates
UI=templates/
; Cache
CACHE = true
; Debug level
DEBUG=3
......
......@@ -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> |
......
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