my ($users) = $c->model('DB::Tech')->search_rs; # No parens necessary or desired, it returns just a ResultSet. my $users = $c->model('DB::Tech')->search_rs; #### sub list :Chained('base') :Args(0) { my ( $self, $c ) = @_; $c->stash(template => 'admin/list.tt2'); } # OR this is likely to work if your TT stuff is configured right- sub list :Chained('base') :Args(0) {} #### [% META title = 'System Users List' -%] [% FOR user IN users_rs.all -%] [% END -%]
IDfirstnamelastnameemailphoneManagement RatingCommentsDateAdmin
[% user.id %] [% user.firstname | html %] [% user.lastname | html %] [% user.phone | html %] [% user.email | html %] [% user.phone | html %] [% user.managementrating | html %] [% user.managementcomments | html %] [% user.date %] [% user.ismanagement %]