server/php/basic/public_html/index.php
author rougeronj
Wed, 16 Sep 2015 17:36:46 +0200
changeset 524 904effa4b6d7
parent 442 adb907bba956
permissions -rw-r--r--
improve view management: - we can pass a negative view index, in this case we count from the end of the list of view - before creating/changing the view representation, we remove the previous one and reinitialize the node visibility - each time we save a view, it creates a new one at the end of the list - "restore" view loads the last view of the list
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
442
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?php
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
    require_once(realpath(dirname(__FILE__) . "/../resources/config.php"));
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
    require_once(LIBRARY_PATH . "/templateFunctions.php");
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    require_once(LIBRARY_PATH . "/dbFunctions.php");
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    $variables = array(
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
        'renkans' => listProjects()
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    );
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
    $css = ['static/lib/foundation/css/foundation-icons.css'];
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    renderLayoutWithContentFile("home.php", $variables, $css);