示例#1
0
 public function renderDefault()
 {
     $params = $this->serverRepo->getRunParams($this->selectedServerId);
     $this->template->address = $this->hostIp . ":" . $params['port'];
     try {
         $logModel = new LogModel($params['path'] . 'logs/');
         $this->template->logs = LogModel::makeColorful($logModel->getAll());
     } catch (UnexpectedValueException $e) {
         $this->template->logs = array('nic nenalezeno');
     }
 }
示例#2
0
 public function renderStarted()
 {
     $path = $this->serverRepo->getPath($this->selectedServerId);
     try {
         $logModel = new LogModel($path . 'logs/');
         $this->template->logs = LogModel::makeColorful($logModel->getAll(8));
     } catch (UnexpectedValueException $e) {
         $this->template->logs = array('nic nenalezeno');
     }
 }