我有一个问题:我在DB中有这些表:
在蛋糕为“文档”烘焙后,为视图生成的代码(示例文档/视图)始终是用户的代码:
<div class="documentosDocs view">
<h2><?php echo __('Documentos Doc'); ?></h2>
<dl>
<dt><?php echo __('Id'); ?></dt>
<dd>
<?php echo h($user['User']['id']); ?>
</dd>
<dt><?php echo __('Empresa'); ?></dt>
<dd>
<?php echo $this->Html->link($user['Empresa']['id'], array('controller' => 'empresas', 'action' => 'view', $user['Empresa']['id'])); ?>
</dd>
<dt><?php echo __('Username'); ?></dt>
<dd>
<?php echo h($user['User']['username']); ?>
</dd>
<dt><?php echo __('Password'); ?></dt>
<dd>
<?php echo h($user['User']['password']); ?>
</dd>
<dt><?php echo __('NombreCompleto'); ?></dt>
<dd>
<?php echo h($user['User']['nombreCompleto']); ?>
</dd>
<dt><?php echo __('Email'); ?></dt>
<dd>
<?php echo h($user['User']['email']); ?>
</dd>
<dt><?php echo __('Role'); ?></dt>
<dd>
<?php echo h($user['User']['role']); ?>
</dd>
<dt><?php echo __('Group'); ?></dt>
<dd>
<?php echo $this->Html->link($user['Group']['name'], array('controller' => 'groups', 'action' => 'view', $user['Group']['id'])); ?>
</dd>
<dt><?php echo __('Created'); ?></dt>
<dd>
<?php echo h($user['User']['created']); ?>
</dd>
<dt><?php echo __('Modified'); ?></dt>
<dd>
<?php echo h($user['User']['modified']); ?>
</dd>
</dl>
</div>