Example #1
0
 public function __construct()
 {
     $this->route = new \Route();
     $this->to_tpl = array();
     $this->msg_to_user = "";
     $this->template = "";
     static::$main_template = "main";
     $this->site_name = "Advokat Marinković";
     // Set the footer year
     $footer_year = new \DateTime("now");
     $this->to_tpl['footer_year'] = $footer_year->format('Y');
     // Get all the pages
     $pages = new Page();
     $pages->fetchAllByFieldValue("published", 1);
     $this->to_tpl['pages'] = $pages->list;
     // Set the default language
     $this->set_language("sr");
 }