faq.php 650 Bytes
<?php
/**
 * Created by PhpStorm.
 * User: aleksandarhristov
 * Date: 11.02.15
 * Time: 10:39
 */

//include the smarty class and the global functions
require "libs/Smarty.class.php";
require "global_functions.php";

//initialize smarty
$smarty = new Smarty;
//get current page to determine the action about to be performed; needed to set the active id to the <li> in the sidebar menu
$current_page=$_SERVER['PHP_SELF'];

//assign a value to the current page variable in the admin sidebar wrapper template using the current_page() function from global_functions.php
$smarty->assign("current_page",current_page());
$smarty->display("tpl/faq.tpl");

?>