Commit 31de8b5c authored by Langston Ball's avatar Langston Ball

refs #2806 Adds view, database relations files for various classes, previous...

refs #2806 Adds view, database relations files for various classes, previous commit adds media scenarios only to alexa i.e. 'PS4 in Living room' Next to implement is stop
parent f51c30c8
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* Commandgroup Controller
*
* @property \App\Model\Table\CommandgroupTable $Commandgroup
*
* @method \App\Model\Entity\Commandgroup[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = [])
*/
class CommandgroupController extends AppController
{
/**
* Index method
*
* @return \Cake\Http\Response|void
*/
public function index()
{
$commandgroup = $this->paginate($this->Commandgroup);
$this->set(compact('commandgroup'));
}
/**
* View method
*
* @param string|null $id Commandgroup id.
* @return \Cake\Http\Response|void
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
*/
public function view($id = null)
{
$commandgroup = $this->Commandgroup->get($id, [
'contain' => ['Room']
]);
$this->set('commandgroup', $commandgroup);
}
/**
* Add method
*
* @return \Cake\Http\Response|null Redirects on successful add, renders view otherwise.
*/
public function add()
{
$commandgroup = $this->Commandgroup->newEntity();
if ($this->request->is('post')) {
$commandgroup = $this->Commandgroup->patchEntity($commandgroup, $this->request->getData());
if ($this->Commandgroup->save($commandgroup)) {
$this->Flash->success(__('The commandgroup has been saved.'));
return $this->redirect(['action' => 'index']);
}
$this->Flash->error(__('The commandgroup could not be saved. Please, try again.'));
}
$this->set(compact('commandgroup'));
}
/**
* Edit method
*
* @param string|null $id Commandgroup id.
* @return \Cake\Http\Response|null Redirects on successful edit, renders view otherwise.
* @throws \Cake\Network\Exception\NotFoundException When record not found.
*/
public function edit($id = null)
{
$commandgroup = $this->Commandgroup->get($id, [
'contain' => []
]);
if ($this->request->is(['patch', 'post', 'put'])) {
$commandgroup = $this->Commandgroup->patchEntity($commandgroup, $this->request->getData());
if ($this->Commandgroup->save($commandgroup)) {
$this->Flash->success(__('The commandgroup has been saved.'));
return $this->redirect(['action' => 'index']);
}
$this->Flash->error(__('The commandgroup could not be saved. Please, try again.'));
}
$this->set(compact('commandgroup'));
}
/**
* Delete method
*
* @param string|null $id Commandgroup id.
* @return \Cake\Http\Response|null Redirects to index.
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
*/
public function delete($id = null)
{
$this->request->allowMethod(['post', 'delete']);
$commandgroup = $this->Commandgroup->get($id);
if ($this->Commandgroup->delete($commandgroup)) {
$this->Flash->success(__('The commandgroup has been deleted.'));
} else {
$this->Flash->error(__('The commandgroup could not be deleted. Please, try again.'));
}
return $this->redirect(['action' => 'index']);
}
}
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* Entertainarea Controller
*
* @property \App\Model\Table\EntertainareaTable $Entertainarea
*
* @method \App\Model\Entity\Entertainarea[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = [])
*/
class EntertainareaController extends AppController
{
/**
* Index method
*
* @return \Cake\Http\Response|void
*/
public function index()
{
$this->paginate = [
'contain' => ['Room']
];
$entertainarea = $this->paginate($this->Entertainarea);
$this->set(compact('entertainarea'));
}
/**
* View method
*
* @param string|null $id Entertainarea id.
* @return \Cake\Http\Response|void
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
*/
public function view($id = null)
{
$entertainarea = $this->Entertainarea->get($id, [
'contain' => ['Room', 'CommandGroup']
]);
$this->set('entertainarea', $entertainarea);
}
/**
* Add method
*
* @return \Cake\Http\Response|null Redirects on successful add, renders view otherwise.
*/
public function add()
{
$entertainarea = $this->Entertainarea->newEntity();
if ($this->request->is('post')) {
$entertainarea = $this->Entertainarea->patchEntity($entertainarea, $this->request->getData());
if ($this->Entertainarea->save($entertainarea)) {
$this->Flash->success(__('The entertainarea has been saved.'));
return $this->redirect(['action' => 'index']);
}
$this->Flash->error(__('The entertainarea could not be saved. Please, try again.'));
}
$room = $this->Entertainarea->Room->find('list', ['limit' => 200]);
$commandGroup = $this->Entertainarea->CommandGroup->find('list', ['limit' => 200]);
$this->set(compact('entertainarea', 'room', 'commandGroup'));
}
/**
* Edit method
*
* @param string|null $id Entertainarea id.
* @return \Cake\Http\Response|null Redirects on successful edit, renders view otherwise.
* @throws \Cake\Network\Exception\NotFoundException When record not found.
*/
public function edit($id = null)
{
$entertainarea = $this->Entertainarea->get($id, [
'contain' => ['CommandGroup']
]);
if ($this->request->is(['patch', 'post', 'put'])) {
$entertainarea = $this->Entertainarea->patchEntity($entertainarea, $this->request->getData());
if ($this->Entertainarea->save($entertainarea)) {
$this->Flash->success(__('The entertainarea has been saved.'));
return $this->redirect(['action' => 'index']);
}
$this->Flash->error(__('The entertainarea could not be saved. Please, try again.'));
}
$room = $this->Entertainarea->Room->find('list', ['limit' => 200]);
$commandGroup = $this->Entertainarea->CommandGroup->find('list', ['limit' => 200]);
$this->set(compact('entertainarea', 'room', 'commandGroup'));
}
/**
* Delete method
*
* @param string|null $id Entertainarea id.
* @return \Cake\Http\Response|null Redirects to index.
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
*/
public function delete($id = null)
{
$this->request->allowMethod(['post', 'delete']);
$entertainarea = $this->Entertainarea->get($id);
if ($this->Entertainarea->delete($entertainarea)) {
$this->Flash->success(__('The entertainarea has been deleted.'));
} else {
$this->Flash->error(__('The entertainarea could not be deleted. Please, try again.'));
}
return $this->redirect(['action' => 'index']);
}
}
<?php
namespace App\Model\Table;
use Cake\ORM\Table;
class CommandgroupTable extends Table{
public function initialize(array $config){
$this->setTable('CommandGroup');
$this->primaryKey('PK_CommandGroup');
$this->hasOne('Room',
[
'className' => 'Rooms',
'joinTable' => 'Commandgrouproom',
'bindingKey' => 'PK_CommandGroup',
'foreignKey' => 'PK_Room',
'targetForeignKey' =>'FK_Room'
]);
}
}
?>
\ No newline at end of file
<?php
namespace App\Model\Table;
use Cake\ORM\Table;
class CommandgroupentertainareaTable extends Table{
public function initialize(array $config){
$this->setTable('CommandGroup_EntertainArea');
$this->belongsTo('CommandGroup',
[
'className' =>'Commandgroup',
'foreignKey' =>'FK_CommandGroup'
]);
$this->belongsTo('EntertainArea',
[
'className' => 'Entertainarea',
'foreignKey' => 'PK_EntertainArea'
]);
}
}
\ No newline at end of file
<?php
namespace App\Model\Table;
use Cake\ORM\Table;
class CommandgrouproomTable extends Table{
public function initialize(array $config){
$this->setTable('CommandGroup_Room');
//$this->primaryKey('FK_CommandGroup');
$this->belongsTo('CommandGroup',
[
'className' => 'Commandgroup',
'foreignKey' => 'PK_CommandGroup'
]);
$this->belongsTo('Room',
[
'className' => 'Rooms',
'foreignKey' => 'PK_Room'
]);
}
}
?>
\ No newline at end of file
<?php
namespace App\Model\Table;
use Cake\ORM\Table;
class EntertainareaTable extends Table{
public function initialize(array $config){
$this->setTable('EntertainArea');
$this->primaryKey('PK_EntertainArea');
$this->belongsTo('Room',
[
'className' => 'Rooms',
'foreignKey' => 'FK_Room',
'bindingKey' => 'PK_Room'
]);
$this->belongsToMany('CommandGroup', [
'className' => 'Commandgroup',
'joinTable' => 'Commandgroupentertainarea',
'bindingKey' => 'PK_EntertainArea',
'foreignKey' => 'FK_EntertainArea',
'targetForeignKey' => 'FK_CommandGroup'
]);
}
}
?>
\ No newline at end of file
<?php
/**
* @var \App\View\AppView $this
* @var \Cake\Datasource\EntityInterface $commandgroup
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Commandgroup'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Room'), ['controller' => 'Rooms', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Room'), ['controller' => 'Rooms', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="commandgroup form large-9 medium-8 columns content">
<?= $this->Form->create($commandgroup) ?>
<fieldset>
<legend><?= __('Add Commandgroup') ?></legend>
<?php
echo $this->Form->control('FK_Array');
echo $this->Form->control('FK_Installation');
echo $this->Form->control('Description');
echo $this->Form->control('Hint');
echo $this->Form->control('CanTurnOff');
echo $this->Form->control('AlwaysShow');
echo $this->Form->control('CanBeHidden');
echo $this->Form->control('FK_Criteria_Orbiter');
echo $this->Form->control('FK_DesignObj');
echo $this->Form->control('FK_Template');
echo $this->Form->control('AltID');
echo $this->Form->control('FK_Icon');
echo $this->Form->control('AutoGeneratedDate', ['empty' => true]);
echo $this->Form->control('Disabled');
echo $this->Form->control('TemplateParm1');
echo $this->Form->control('TemplateParm2');
echo $this->Form->control('FK_Text');
echo $this->Form->control('psc_id');
echo $this->Form->control('psc_batch');
echo $this->Form->control('psc_user');
echo $this->Form->control('psc_frozen');
echo $this->Form->control('psc_mod');
echo $this->Form->control('psc_restrict');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>
<?php
/**
* @var \App\View\AppView $this
* @var \Cake\Datasource\EntityInterface $commandgroup
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $commandgroup->PK_CommandGroup],
['confirm' => __('Are you sure you want to delete # {0}?', $commandgroup->PK_CommandGroup)]
)
?></li>
<li><?= $this->Html->link(__('List Commandgroup'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Room'), ['controller' => 'Rooms', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Room'), ['controller' => 'Rooms', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="commandgroup form large-9 medium-8 columns content">
<?= $this->Form->create($commandgroup) ?>
<fieldset>
<legend><?= __('Edit Commandgroup') ?></legend>
<?php
echo $this->Form->control('FK_Array');
echo $this->Form->control('FK_Installation');
echo $this->Form->control('Description');
echo $this->Form->control('Hint');
echo $this->Form->control('CanTurnOff');
echo $this->Form->control('AlwaysShow');
echo $this->Form->control('CanBeHidden');
echo $this->Form->control('FK_Criteria_Orbiter');
echo $this->Form->control('FK_DesignObj');
echo $this->Form->control('FK_Template');
echo $this->Form->control('AltID');
echo $this->Form->control('FK_Icon');
echo $this->Form->control('AutoGeneratedDate', ['empty' => true]);
echo $this->Form->control('Disabled');
echo $this->Form->control('TemplateParm1');
echo $this->Form->control('TemplateParm2');
echo $this->Form->control('FK_Text');
echo $this->Form->control('psc_id');
echo $this->Form->control('psc_batch');
echo $this->Form->control('psc_user');
echo $this->Form->control('psc_frozen');
echo $this->Form->control('psc_mod');
echo $this->Form->control('psc_restrict');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>
<?php
/**
* @var \App\View\AppView $this
* @var \Cake\Datasource\EntityInterface[]|\Cake\Collection\CollectionInterface $commandgroup
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('New Commandgroup'), ['action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Room'), ['controller' => 'Rooms', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Room'), ['controller' => 'Rooms', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="commandgroup index large-9 medium-8 columns content">
<h3><?= __('Commandgroup') ?></h3>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('PK_CommandGroup') ?></th>
<th scope="col"><?= $this->Paginator->sort('FK_Array') ?></th>
<th scope="col"><?= $this->Paginator->sort('FK_Installation') ?></th>
<th scope="col"><?= $this->Paginator->sort('Description') ?></th>
<th scope="col"><?= $this->Paginator->sort('Hint') ?></th>
<th scope="col"><?= $this->Paginator->sort('CanTurnOff') ?></th>
<th scope="col"><?= $this->Paginator->sort('AlwaysShow') ?></th>
<th scope="col"><?= $this->Paginator->sort('CanBeHidden') ?></th>
<th scope="col"><?= $this->Paginator->sort('FK_Criteria_Orbiter') ?></th>
<th scope="col"><?= $this->Paginator->sort('FK_DesignObj') ?></th>
<th scope="col"><?= $this->Paginator->sort('FK_Template') ?></th>
<th scope="col"><?= $this->Paginator->sort('AltID') ?></th>
<th scope="col"><?= $this->Paginator->sort('FK_Icon') ?></th>
<th scope="col"><?= $this->Paginator->sort('AutoGeneratedDate') ?></th>
<th scope="col"><?= $this->Paginator->sort('Disabled') ?></th>
<th scope="col"><?= $this->Paginator->sort('TemplateParm1') ?></th>
<th scope="col"><?= $this->Paginator->sort('TemplateParm2') ?></th>
<th scope="col"><?= $this->Paginator->sort('FK_Text') ?></th>
<th scope="col"><?= $this->Paginator->sort('psc_id') ?></th>
<th scope="col"><?= $this->Paginator->sort('psc_batch') ?></th>
<th scope="col"><?= $this->Paginator->sort('psc_user') ?></th>
<th scope="col"><?= $this->Paginator->sort('psc_frozen') ?></th>
<th scope="col"><?= $this->Paginator->sort('psc_mod') ?></th>
<th scope="col"><?= $this->Paginator->sort('psc_restrict') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($commandgroup as $commandgroup): ?>
<tr>
<td><?= $this->Number->format($commandgroup->PK_CommandGroup) ?></td>
<td><?= $this->Number->format($commandgroup->FK_Array) ?></td>
<td><?= $this->Number->format($commandgroup->FK_Installation) ?></td>
<td><?= h($commandgroup->Description) ?></td>
<td><?= h($commandgroup->Hint) ?></td>
<td><?= $this->Number->format($commandgroup->CanTurnOff) ?></td>
<td><?= $this->Number->format($commandgroup->AlwaysShow) ?></td>
<td><?= $this->Number->format($commandgroup->CanBeHidden) ?></td>
<td><?= $this->Number->format($commandgroup->FK_Criteria_Orbiter) ?></td>
<td><?= $this->Number->format($commandgroup->FK_DesignObj) ?></td>
<td><?= $this->Number->format($commandgroup->FK_Template) ?></td>
<td><?= $this->Number->format($commandgroup->AltID) ?></td>
<td><?= $this->Number->format($commandgroup->FK_Icon) ?></td>
<td><?= h($commandgroup->AutoGeneratedDate) ?></td>
<td><?= h($commandgroup->Disabled) ?></td>
<td><?= $this->Number->format($commandgroup->TemplateParm1) ?></td>
<td><?= $this->Number->format($commandgroup->TemplateParm2) ?></td>
<td><?= $this->Number->format($commandgroup->FK_Text) ?></td>
<td><?= $this->Number->format($commandgroup->psc_id) ?></td>
<td><?= $this->Number->format($commandgroup->psc_batch) ?></td>
<td><?= $this->Number->format($commandgroup->psc_user) ?></td>
<td><?= h($commandgroup->psc_frozen) ?></td>
<td><?= h($commandgroup->psc_mod) ?></td>
<td><?= $this->Number->format($commandgroup->psc_restrict) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $commandgroup->PK_CommandGroup]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $commandgroup->PK_CommandGroup]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $commandgroup->PK_CommandGroup], ['confirm' => __('Are you sure you want to delete # {0}?', $commandgroup->PK_CommandGroup)]) ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->first('<< ' . __('first')) ?>
<?= $this->Paginator->prev('< ' . __('previous')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__('next') . ' >') ?>
<?= $this->Paginator->last(__('last') . ' >>') ?>
</ul>
<p><?= $this->Paginator->counter(['format' => __('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')]) ?></p>
</div>
</div>
<?php
/**
* @var \App\View\AppView $this
* @var \Cake\Datasource\EntityInterface $commandgroup
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('Edit Commandgroup'), ['action' => 'edit', $commandgroup->PK_CommandGroup]) ?> </li>
<li><?= $this->Form->postLink(__('Delete Commandgroup'), ['action' => 'delete', $commandgroup->PK_CommandGroup], ['confirm' => __('Are you sure you want to delete # {0}?', $commandgroup->PK_CommandGroup)]) ?> </li>
<li><?= $this->Html->link(__('List Commandgroup'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Commandgroup'), ['action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Room'), ['controller' => 'Rooms', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Room'), ['controller' => 'Rooms', 'action' => 'add']) ?> </li>
</ul>
</nav>
<div class="commandgroup view large-9 medium-8 columns content">
<h3><?= h($commandgroup->PK_CommandGroup) ?></h3>
<table class="vertical-table">
<tr>
<th scope="row"><?= __('Description') ?></th>
<td><?= h($commandgroup->Description) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Hint') ?></th>
<td><?= h($commandgroup->Hint) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Room') ?></th>
<td><?= $commandgroup->has('room') ? $this->Html->link($commandgroup->room->PK_Room, ['controller' => 'Rooms', 'action' => 'view', $commandgroup->room->PK_Room]) : '' ?></td>
</tr>
<tr>
<th scope="row"><?= __('PK CommandGroup') ?></th>
<td><?= $this->Number->format($commandgroup->PK_CommandGroup) ?></td>
</tr>
<tr>
<th scope="row"><?= __('FK Array') ?></th>
<td><?= $this->Number->format($commandgroup->FK_Array) ?></td>
</tr>
<tr>
<th scope="row"><?= __('FK Installation') ?></th>
<td><?= $this->Number->format($commandgroup->FK_Installation) ?></td>
</tr>
<tr>
<th scope="row"><?= __('CanTurnOff') ?></th>
<td><?= $this->Number->format($commandgroup->CanTurnOff) ?></td>
</tr>
<tr>
<th scope="row"><?= __('AlwaysShow') ?></th>
<td><?= $this->Number->format($commandgroup->AlwaysShow) ?></td>
</tr>
<tr>
<th scope="row"><?= __('CanBeHidden') ?></th>
<td><?= $this->Number->format($commandgroup->CanBeHidden) ?></td>
</tr>
<tr>
<th scope="row"><?= __('FK Criteria Orbiter') ?></th>
<td><?= $this->Number->format($commandgroup->FK_Criteria_Orbiter) ?></td>
</tr>
<tr>
<th scope="row"><?= __('FK DesignObj') ?></th>
<td><?= $this->Number->format($commandgroup->FK_DesignObj) ?></td>
</tr>
<tr>
<th scope="row"><?= __('FK Template') ?></th>
<td><?= $this->Number->format($commandgroup->FK_Template) ?></td>
</tr>
<tr>
<th scope="row"><?= __('AltID') ?></th>
<td><?= $this->Number->format($commandgroup->AltID) ?></td>
</tr>
<tr>
<th scope="row"><?= __('FK Icon') ?></th>
<td><?= $this->Number->format($commandgroup->FK_Icon) ?></td>
</tr>
<tr>
<th scope="row"><?= __('TemplateParm1') ?></th>
<td><?= $this->Number->format($commandgroup->TemplateParm1) ?></td>
</tr>
<tr>
<th scope="row"><?= __('TemplateParm2') ?></th>
<td><?= $this->Number->format($commandgroup->TemplateParm2) ?></td>
</tr>
<tr>
<th scope="row"><?= __('FK Text') ?></th>
<td><?= $this->Number->format($commandgroup->FK_Text) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Psc Id') ?></th>
<td><?= $this->Number->format($commandgroup->psc_id) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Psc Batch') ?></th>
<td><?= $this->Number->format($commandgroup->psc_batch) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Psc User') ?></th>
<td><?= $this->Number->format($commandgroup->psc_user) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Psc Restrict') ?></th>
<td><?= $this->Number->format($commandgroup->psc_restrict) ?></td>
</tr>
<tr>
<th scope="row"><?= __('AutoGeneratedDate') ?></th>
<td><?= h($commandgroup->AutoGeneratedDate) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Psc Mod') ?></th>
<td><?= h($commandgroup->psc_mod) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Disabled') ?></th>
<td><?= $commandgroup->Disabled ? __('Yes') : __('No'); ?></td>
</tr>
<tr>
<th scope="row"><?= __('Psc Frozen') ?></th>
<td><?= $commandgroup->psc_frozen ? __('Yes') : __('No'); ?></td>
</tr>
</table>
</div>
<?php
/**
* @var \App\View\AppView $this
* @var \Cake\Datasource\EntityInterface $entertainarea
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Entertainarea'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Room'), ['controller' => 'Rooms', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Room'), ['controller' => 'Rooms', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Command Group'), ['controller' => 'Commandgroup', 'action' => 'index']) ?></li>