[Catalyst] $c->comp($name) fails to return the correct class
    Alan Tam 
    Tam at SiuLung.com
       
    Sat Sep 24 17:08:33 CEST 2005
    
    
  
Matt S Trout wrote:
>my $comp = $c->comp('M::Book$');
>
>This is the approach I use and not only works for Class::DBI stuff but means
>your components get a head-start on portability between apps.
>
Unfortunately other classes, like Scaffold, would still call $c->compin 
their own way.
But if it is my own code, why not just use a string to represent the class.
-- 
Regards,
Alan
    
    
More information about the Catalyst
mailing list