
jorge.gonzalez at daikon
Apr 27, 2012, 7:43 AM
Post #3 of 11
(273 views)
Permalink
|
Can we see your template? How are you accesing your data there? Just a matter of style, but if "accounts" is going to hold a list of just one element, why not name it "account" (singular) and stick the row directly in it, instead of a list? That way, in your template you can access it just by [% account %] (if usint TT), instead of having to traverse the list (with for, next, etc.) or index the first element... Regards J. El 27/04/12 16:07, Kenneth S Mclane escribió: > OK, I still can't get "->all" to work, but this: > > $c->stash(accounts => [ > $c->model('ORANGES::AccountView')->find({account_name => 'GHODB2'}) ]); > > returns one row, as it should, but there is no data showing in my > page. Obviously the query is successful, so the data must exist or it > could not match, but I am at a loss to know where my data is and why > it isn't showing in my page. > > any ideas? > > Regards > ------------------------------------------------------------------------ > > *Kenneth McLane* 700 Locust St > Systems Compliance Services Dubuque, 52001-6838 > I1OB USA > GTS Services Delivery > Phone: +1-563-845-4674 > Tie-Line: 946-4674 > Mobile: +1-563-940-7147 > e-mail: ksmclane [at] us > ------------------------------------------------------------------------ > "Ideas come from everything" -- Alfred Hitchcock > > > > > _______________________________________________ > List: Catalyst [at] lists > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst [at] lists/ > Dev site: http://dev.catalyst.perl.org/
|