23 lines
659 B
PHP
23 lines
659 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Contact extends MY_Controller
|
|
{
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->load->model('ContactModel', '', TRUE);
|
|
$this->load->model('UserModel', '', TRUE);
|
|
}
|
|
|
|
public function index() {
|
|
$this->neededPermission('contact.view');
|
|
|
|
$contactMessages = $this->ContactModel->getContactMessages();
|
|
|
|
$this->load->view('admin/sidebar', ['title' => 'Kontakt-Nachrichten']);
|
|
$this->load->view('admin/contact', ['contactMessages' => $contactMessages]);
|
|
$this->load->view('admin/footer');
|
|
}
|
|
} |