CakePHP: "cake bake all" creates always the same code -


i have problem: have these tables in db:

  • users
  • empresas (enterprises) ("hasmany users" , "hasmany documents")
  • documents
  • and many other related "empresas"

and after cake bake "documents", code generated views (example documents/view) code users:

<div class="documentosdocs view"> <h2><?php  echo __('documentos doc'); ?></h2> <dl>     <dt><?php echo __('id'); ?></dt>     <dd>         <?php echo h($user['user']['id']); ?>         &nbsp;     </dd>     <dt><?php echo __('empresa'); ?></dt>     <dd>         <?php echo $this->html->link($user['empresa']['id'], array('controller' => 'empresas', 'action' => 'view', $user['empresa']['id'])); ?>         &nbsp;     </dd>     <dt><?php echo __('username'); ?></dt>     <dd>         <?php echo h($user['user']['username']); ?>         &nbsp;     </dd>     <dt><?php echo __('password'); ?></dt>     <dd>         <?php echo h($user['user']['password']); ?>         &nbsp;     </dd>     <dt><?php echo __('nombrecompleto'); ?></dt>     <dd>         <?php echo h($user['user']['nombrecompleto']); ?>         &nbsp;     </dd>     <dt><?php echo __('email'); ?></dt>     <dd>         <?php echo h($user['user']['email']); ?>         &nbsp;     </dd>     <dt><?php echo __('role'); ?></dt>     <dd>         <?php echo h($user['user']['role']); ?>         &nbsp;     </dd>     <dt><?php echo __('group'); ?></dt>     <dd>         <?php echo $this->html->link($user['group']['name'], array('controller' => 'groups', 'action' => 'view', $user['group']['id'])); ?>         &nbsp;     </dd>     <dt><?php echo __('created'); ?></dt>     <dd>         <?php echo h($user['user']['created']); ?>         &nbsp;     </dd>     <dt><?php echo __('modified'); ?></dt>     <dd>         <?php echo h($user['user']['modified']); ?>         &nbsp;     </dd> </dl> </div> 


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -