开发者

Rose::DB::Object::Manager and HTML Template

开发者 https://www.devze.com 2023-02-13 22:48 出处:网络
I am using Rose::DB::Object::Manager (get/iterate methods) to source data from a database and HTML::Template for reporting.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消