in reply to Need help working with a view in Catalyst
If this is actually what you have–
[% FOREACH tech in tech -%]–it should be (updated from what chromatic noticed)–
[% FOREACH tech IN users -%]And FOR is more “perly.” I would probably also pass $c->model('DB::tech')->search_rs instead and then it becomes–
[% FOR tech IN users.all -%]You have access to things like the pager and such passing the resultset around instead of a list of objects + deferred queries can sometimes be a win.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need help working with a view in Catalyst
by vendion (Scribe) on Mar 22, 2011 at 23:52 UTC | |
by Your Mother (Archbishop) on Mar 23, 2011 at 04:49 UTC | |
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 | |
|