[Catalyst] namespace problem

gutta mohan at thebizmo.com
Sat Nov 21 08:34:07 GMT 2009


Hi,

I tried to use "use parent 'MyApp::Controller::Root';"

instead of use parent 'Catalyst::Controller'; in all my other
controllers(for ex: User.pm).

The reason is that Root.pm is already inheriting Catalyst::Controller.

But when i do this catalyst dispatcher is considerting all controller
actions in my other controllers under namespace ''.

But if i declare __PACKAGE__->config->{namespace} = 'user'; its working as
expected.

my server debug logs are here http://scsys.co.uk:8001/36484

Do i need to explicitly define namespace in each and every controllers in
that case or is there any other way to achieve it?

Thank you.

Best Regards,
Mohan
-- 
View this message in context: http://old.nabble.com/namespace-problem-tp26454140p26454140.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.




More information about the Catalyst mailing list