<div class="rights form">
<?php echo $this->Form->create('Right'); ?>
<fieldset>
<legend><?php echo __('Edit Right'); ?></legend>
<?php
echo $this->Form->input('id');
echo $this->Form->input('right_category_id');
echo $this->Form->input('name');
echo $this->Form->input('label');
echo $this->Form->input('description');
echo $this->Form->input('Role');
?>
</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
<div class="actions">
<h3><?php echo __('Actions'); ?></h3>
<ul>
<li><?php echo $this->Form->postLink(__('Delete'), ['action' => 'delete', $this->Form->value('Right.id')], null, __('Are you sure you want to delete # %s?', $this->Form->value('Right.id'))); ?></li>
<li><?php echo $this->Html->link(__('List Rights'), ['action' => 'index']); ?></li>
<li><?php echo $this->Html->link(__('List Right Categories'), ['controller' => 'right_categories', 'action' => 'index']); ?> </li>
<li><?php echo $this->Html->link(__('New Right Category'), ['controller' => 'right_categories', 'action' => 'add']); ?> </li>
<li><?php echo $this->Html->link(__('List Roles'), ['controller' => 'roles', 'action' => 'index']); ?> </li>
<li><?php echo $this->Html->link(__('New Role'), ['controller' => 'roles', 'action' => 'add']); ?> </li>
</ul>
</div>
1. Controller → HttpKernel
2. Disptacher → Event Dispacher
3. Template .ctp to Twig
4. Database Active Rector to Doctrine ORM
5. Console commands to Symfony\Console
6. Events to EvenetDispatcher