I am having the same problems - in trying to create controller for
'user' .
I get the message
1. DESCRIBE `users` 2006: MySQL server has gone away
BUT the controller is written.
in trying to create views I get this (index.thtml)
--------------------------------------------------------------------------------
<h2>List Users</h2>
<table cellpadding="0" cellspacing="0">
<tr>
<th>Created</th>
<th>Actions</th>
</tr>
<?php foreach ($users as $user): ?>
<tr>
<td><?php echo $user['User']['0']; ?></td>
<td class="actions">
<?php echo $html->link('View','/users/view/' .
$user['User']['id'])?
>
<?php echo $html->link('Edit','/users/edit/' .
$user['User']['id'])?
>
<?php echo $html->link('Delete','/users/delete/' . $user['User']
['id'], null, 'Are you sure you want to delete id ' . $user['User']
['id'])?>
</td>
</tr>
<?php endforeach; ?>
</table>
---------------------------------------------------------------------------------------------------------------
Bake.php finds the tables or it would not display the names for
choice.
Thanks,
Conrad
On Oct 18, 9:16 am, Jakobloekke <[EMAIL PROTECTED]> wrote:
> Hi guys,
> I'm new to cakephp, and I'm stuck with a problem using the bake
> script:
>
> I can bake a DB configuration without problems.
> When I try to bake a model, my terminal prints out some sql-errors,
> but I can create a new model manually.
>
> When I try to bake a controller I get the following error, and:
> Fatal error: ConnectionManager::getDataSource - Non-existent data
> source default in /Library/WebServer/cake1.2.x.x/cake/libs/model/
> connection_manager.php on line 111
> Then the bake script terminates.
>
> Can anyone tell me where I went wrong?
>
> thanks,
> Jakob
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---