[Catalyst] Re: Request paths - rejoining Chained actions together.

Matt S Trout dbix-class at trout.me.uk
Fri May 30 11:14:15 BST 2008


On Thu, May 29, 2008 at 10:07:50AM +0100, Tomas Doran wrote:
> 
> On 29 May 2008, at 06:44, Matt S Trout wrote:
> >As I said before, Catalyst will treat the namespace corresponding  
> >to the
> >file and any -subnamespaces- as components to load.
> >
> >Which is why my example was more like Controller/Foo.pm containing
> >MyApp::Controller::Foo::Child[123].
> >
> >We don't go round ranbdomly instnatiating every package we find in any
> >file under Model/View/Controller - *that* would be a bug. Not doing  
> >so is
> >a feature :)
> 
> Aha, as usual, I knew I was missing some essential & obvious point  
> when trying to do that, but didn't really have time to scrobble the  
> source.
> 
> And as usual, you made all clear, thanks mst.
> 
> Is this clarified in the documentation (as I missed it), and if not  
> where is the appropriate place for it to live? If it's not documented  
> then I'll write up a doc patch...

I'd vote for putting the package behaviour in setup_component and the
general approach in the cookbook.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the Catalyst mailing list