[Catalyst] updating $c->user at runtime
Yuval Kogman
nothingmuch at woobling.org
Tue Feb 7 08:09:42 CET 2006
On Tue, Feb 07, 2006 at 00:57:28 +0100, Wijnand Wiersma wrote:
> Hi all,
>
> When the user has updated his profile I immediately display a summary of his profile again.
> In this template I use c.user.user.name etc to display the values. But after editing the profile I get the old values there.
> Is it possible to set $c->user again after editing? I don't want to add a second template or duplicate code.
How did you update the profile? Please paste code.
You should update using $c->user->user itself - that way it should
be up to date.
--
() Yuval Kogman <nothingmuch at woobling.org> 0xEBD27418 perl hacker &
/\ kung foo master: /methinks long and hard, and runs away: neeyah!!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060207/d0963158/attachment.pgp
More information about the Catalyst
mailing list