public function index() { $html = ''; $this->template->content = new View('sofia/details'); $interfaces = SofiaManager::getSIPInterfaces(); if ($interfaces) { foreach ($interfaces as $sipinterface_id => $interface) { $html .= $this->showRegistrations(SofiaManager::getRegistrations($interface)); } } $this->view->modelContents = $html; }