Initial commit

This commit is contained in:
Senad Uka
2018-06-11 11:09:35 +02:00
commit ed7df7b11f
1954 changed files with 483354 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
/**
* Controller for contact page
*/
class ContactController{
private $model;
function __construct(){
$this->model = new ContactModel();
}
/**
* get contact information
* @return json list of contacts
*/
public function getContactInfo(){
echo json_encode($this->model->getContactInfo());
}
/**
* include contact template
*/
public function contactTemplate(){
global $user;
require_once('templates/ContactTemplate.php');
}
/**
* open contact page
*/
public function showPage(){
require_once('ContactPage.php');
}
}