[Catalyst] Re: how is the default view type set?
    Aristotle Pagaltzis 
    pagaltzis at gmx.de
       
    Wed Jun  4 22:10:34 BST 2008
    
    
  
* Daniel McBrearty <danielmcbrearty at gmail.com> [2008-06-04 23:05]:
> If you have more than one view type, what determines which is
> used by default?
perldoc Catalyst
    If the name is omitted, it will look for
    - a view object in $c->stash{current_view_instance}, then
    - a view name in $c->stash->{current_view}, then
    - a config setting 'default_view', or
    - check if there is only one view, and return it if that's the case.
Similar rule for the model, btw.
Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>
    
    
More information about the Catalyst
mailing list