On 31 May 2007, at 13:19, Matt S Trout wrote:

On Thu, May 31, 2007 at 02:47:06PM +0300, Octavian Rasnita wrote:
Is it a good idea to create a
MyApp::Controller::Base
which is based on
Catalyst::Controller

I'd create MyApp::ControllerBase::Whatever

then to use
use base MyApp::Controller::Base;

but yes, use base is the right way to go.

I do that - but like mst has - have it outside the MyApp::Controller namespace, because I thought the Catalyst magic would see it as its own controller....

That seems like the sort of gotcha that you could spend days trying to work out just *what* is happening before that Eureka moment!

        Nigel.


--
[ Nigel Metheringham           [EMAIL PROTECTED] ]
[ - Comments in this message are my own and not ITO opinion/policy - ]



_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to