i get this error:
Notice: Undefined property: autoLayout in
/Library/WebServer/Documents/cake/cake/dispatcher.php on line 205
Warning: Invalid argument supplied for foreach() in
/Library/WebServer/Documents/cake/cake/dispatcher.php on line 286
Fatal error: Call to a member function on a non-object in
/Library/WebServer/Documents/cake/jasol/controllers/funcionarios_controller.php
on line 44
and the function on the controller is as follows:
function admin_index() {
$this->set('funcionarios', $this->Funcionario->findAll(
array("funcionarios.FNCN_ACTIVO" => "1"),
array("FNCN_ID", "FNCN_LOGIN", "FNCN_NOMBRE", "FNCN_APELLIDO",
"FNCN_EMAIL"),
"FNCN_LOGIN DESC"));
}
I did uncomment the necesary line to have the /admin/ in the path
and the view is very simple:
<h3>Funcionarios</h3>
<table>
<tr>
<th>Id</th>
<th>Nombre usuario</th>
<th>Funcionario</th>
<th>e-mail</th>
</tr>
<?php foreach ($funcionarios as $funcionario): ?>
<tr>
<td><?php echo $funcionario['Funcionario']['FNCN_ID'] ?></td>
<td><?php echo $funcionario['Funcionario']['FNCN_LOGIN'] ?></td>
<td><?php echo $funcionario['Funcionario']['FNCN_NOMBRE']
?> <?php echo $funcionario['Funcionario']['FNCN_APELLIDO'] ?></td>
<td><?php echo $funcionario['Funcionario']['FNCN_EMAIL'] ?></td>
</tr>
<?php endforeach; ?>
</table>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---