Archived
1
0
This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
old/application/controllers/admin/Contact.php

23 lines
659 B
PHP
Raw Normal View History

2018-10-16 16:28:42 +00:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
2018-12-30 17:35:04 +00:00
class Contact extends MY_Controller
2018-10-16 16:28:42 +00:00
{
public function __construct()
{
parent::__construct();
2019-01-04 18:46:10 +00:00
$this->load->model('ContactModel', '', TRUE);
2018-10-16 16:28:42 +00:00
$this->load->model('UserModel', '', TRUE);
}
public function index() {
2019-01-04 18:46:10 +00:00
$this->neededPermission('contact.view');
$contactMessages = $this->ContactModel->getContactMessages();
2018-10-16 16:28:42 +00:00
$this->load->view('admin/sidebar', ['title' => 'Kontakt-Nachrichten']);
2019-01-04 18:46:10 +00:00
$this->load->view('admin/contact', ['contactMessages' => $contactMessages]);
2018-10-16 16:28:42 +00:00
$this->load->view('admin/footer');
}
}