David R. Baird > MasonX-Maypole-0.04 > templates/factory/view

Download:
MasonX-Maypole-0.04.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source  

view

Takes some objects (usually just one) from objects and displays the object's properties in a table.

It gets the displayable form of a column's name from the hash returned from the column_names method.

The view template also displays a list of other objects related to the first one via has_many style relationships; this is done by calling the related_accessors method - see "related_accessors" in Model - to return a list of has-many accessors. Next it calls each of those accessors, and displays the results in a table.