Rose::DB::Object::Manager and HTML Template
I am using Rose::DB::Object::Manager
(get/iterate methods) to source data from a database and HTML::Template
for reporting.
The HTML report requires a TMPL_LOOP
to display entries in a database.
My question is how do I create an array re开发者_运维技巧ference with the get/iterate methods of RDBOM and pass it to HTML::Template
. Thank You.
Rose::DB::Object::Manager's get/iterate methods will give you objects, but HTML::Template wants plain Perl data structures and values. To bridge the gap, use one or more of the methods in the Rose::DB::Object::Helpers module. The as_tree or column_value_pairs methods are probably your best bets.
精彩评论