FAQ
Dear buddies,
I am exploring the DBIx with Mojolicios with sqlite.
Chinses characters fetche like this:
Single cylinderYamahaBlackCruiserHondaGreenSportSuzukiYellow越野YamahaGrey
The code is here:
get '/' => sub { my $self = shift; $self->stash(motorbikes => [$schema->resultset('Motorcycle')->all]); } => 'index';.......
In the template:
<table> % foreach my $cycle (@{$motorbikes} ) { <tr> <td><%= $cycle->type %></td> <td><%= $cycle->brand %></td> <td><%= $cycle->color %></td> </tr> % } </table>
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20110213/3c752cdc/attachment.htm

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdbix-class @
categoriesperl, catalyst
postedFeb 13, '11 at 3:57p
activeFeb 13, '11 at 3:57p
posts1
users1
websitedbix-class.org
irc#dbix-class

1 user in discussion

Wo Weiyan: 1 post

People

Translate

site design / logo © 2022 Grokbase