2015-06-29 16:01:10 +02:00
|
|
|
<?php
|
|
|
|
|
2015-10-20 22:34:04 +02:00
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
|
2015-06-30 11:27:32 +02:00
|
|
|
use Icinga\Module\Director\Web\Controller\ActionController;
|
2015-06-29 16:01:10 +02:00
|
|
|
|
2015-10-20 22:34:04 +02:00
|
|
|
class WelcomeController extends ActionController
|
2015-06-29 16:01:10 +02:00
|
|
|
{
|
|
|
|
public function indexAction()
|
|
|
|
{
|
|
|
|
$this->getTabs()->add('welcome', array(
|
|
|
|
'url' => $this->getRequest()->getUrl(),
|
|
|
|
'label' => $this->translate('Welcome')
|
|
|
|
))->activate('welcome');
|
|
|
|
if (! $this->Config()->get('db', 'resource')) {
|
|
|
|
$this->view->errorMessage = sprintf(
|
|
|
|
$this->translate('No database resource has been configured yet. Please %s to complete your config'),
|
|
|
|
$this->view->qlink($this->translate('click here'), 'director/settings')
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|