Just to keep this clear, END and end are two different things. END is a perl operator. Anything inside an END block will be executed when the program is shutting down -- in Catalyst's case, hopefully never.
end (lowercase) in Catalyst controllers gets called after all controller methods have returned. They're called from most-specific to most-general, so if you're in MyApp::Controller::Foo, MyApp::Controller::Foo::end gets called, and then MyApp::Controller::Root::end gets called. Foo::end can detach, of course, terminating the request cycle. Hope this helps. Regards, Jonathan Rockway > When setting the template name, it forward sill still come back > to the action that called it, but END will forward to the view and > deal with the template that you have set. > > _______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
