in reply to Re^2: Need help working with a view in Catalyst
in thread Need help working with a view in Catalyst
Close. You don't want to take an array reference. The result set is already a reference to an object. Just change that–
$c->stash( users => $c->model('DB::tech')->search_rs );–and you should be good. You might want to look around for advice and techniques with chained controller methods too. They go very well with chained result sets and can make code terse while still being easy to read and follow.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Need help working with a view in Catalyst
by vendion (Scribe) on Mar 24, 2011 at 16:38 UTC | |
by vendion (Scribe) on Mar 25, 2011 at 00:17 UTC | |
by Your Mother (Archbishop) on Mar 26, 2011 at 22:00 UTC | |
by vendion (Scribe) on Mar 29, 2011 at 01:01 UTC | |
by Your Mother (Archbishop) on Mar 29, 2011 at 01:10 UTC |