<html><head><title>[% c.config.name %]</title></head><body>
<h1>Create a new user</h1>
+ <h2>Current users are:</h2>
+ <p>
+ [% FOREACH key = c.config.authentication.users.keys %]
+ [% key %]<br/>
+ [% END %]
+ </p>
<p> [% c.stash.message %] </p>
<form action="/users/create" method="post">
<p>User Name: <input type="text" name="username"/></p>
If you have or want a database, there are still choices to be made, there are
several modules about for accessing databases via OO. The best known are
-probably L<Class::DBI> and L<DBIx::Class>. Catalyst supports making models
+probably L<DBIx::Class> and L<Class::DBI>. Catalyst supports making models
using either of these.
For a simple example, we will allow our users to store their favourite
else {
my $grtable = $c->model('UserData::Greetings');
my $record = $grtable->find_or_create(user => $c->user->id);
- $record->greeting($c->req->params->{greeting};
+ $record->greeting($c->req->params->{greeting});
$record->update;
$c->stash->{message} = 'Greeting updated';
}