[Catalyst] No data showing
Kenneth S Mclane
ksmclane at us.ibm.com
Fri Apr 27 15:09:13 GMT 2012
I swear I tried that and it still didn't work. It does now, thank you. Can
you tell me what I need to add to "$c->stash(accounts => [
$c->model('ORANGES::AccountView')->all ]);" to sort by the account_code in
ascending order? It's obviously "sort, but the actual syntax is what I'm
looking for. Thanks again.
Will Crawford <billcrawford1970 at gmail.com>
The elegant MVC web framework <catalyst at lists.scsys.co.uk>
04/27/2012 09:55 AM
Re: [Catalyst] No data showing
On 27 April 2012 15:50, Kenneth S Mclane <ksmclane at us.ibm.com> wrote:
This was a test to make sure I was actually getting data. My intention is
to return all rows in pager format. I haven't made it to that part yet.
Here is my template code:
<table width="100%" border="1">
[% # Display each account in a table row %]
[% FOREACH account IN accounts -%]
<td>1[% accounts.department_id %]</td>
You're simply referring to the list instead of the item here.
List: Catalyst at lists.scsys.co.uk
Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Catalyst