Files
thetool/application/CallcenterIdentity/CallcenterIdentityController.php
2025-07-17 20:30:53 +02:00

26 lines
561 B
PHP

<?php
class CallcenterstatsController extends mfBaseController {
protected function init() {
$this->needlogin = true;
$me = new User();
$me->loadMe();
$this->me = $me;
$this->layout()->set("me", $me);
if(!$me->is("Admin")) {
$this->redirect("Dashboard");
}
}
protected function indexAction() {
$this->layout()->setTemplate("Callcenterstats/Index");
$identities = CallcenterIdentity::getAll();
$this->layout()->set("identities", $identities);
}
}