[Catalyst] Catalyst 5 Preview, Part 2
Uwe Voelker
uwe.voelker at gmx.de
Tue Apr 5 21:20:20 CEST 2005
Sorry, it's me again. :-)
I have a few questions:
> package MyApp;
>
> sub begin : Private {}
> sub auto : Private { return 1 }
> sub end : Private {}
>
> package MyApp::C::Foo;
>
> sub auto : Private { return 1 }
> sub bar : Local {}
> sub end : Private {}
>
> Now if you request http://localhost:3000/foo/bar/ Cat5 would process:
>
> MyApp->begin;
>
> MyApp->auto;
> MyApp::C::Foo->auto;
> MyApp::C::Foo->bar;
>
> MyApp::C::Foo->end;
1. Why is MyApp->end not processed?
2. What would happened if a sub MyApp::C::Foo->begin had existed?
3. What happens if in MyApp a sub with :Path('/foo/bar') exists? Which
one will be called? When both are called - in which order?
Thank you,
good bye,
Uwe
More information about the Catalyst
mailing list