[Catalyst] Re: how is the default view type set?

Daniel McBrearty danielmcbrearty at gmail.com
Wed Jun 4 22:23:18 BST 2008


thanks both!

On Wed, Jun 4, 2008 at 11:10 PM, Aristotle Pagaltzis <pagaltzis at gmx.de> wrote:
> * 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/>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
http://www.engoi.com
http://danmcb.vox.com
http://danmcb.blogger.com
find me on linkedin and facebook
BTW : 0873928131



More information about the Catalyst mailing list