Commit e3ac5a29 authored by Mindiell's avatar Mindiell

Cache test deletion

parent a35fe178
......@@ -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');
......
<?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);
......
......@@ -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> |
......
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