[Catalyst] base controller
Nigel Metheringham
nigel.metheringham at dev.intechnology.co.uk
Thu May 31 14:24:43 GMT 2007
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 Nigel.Metheringham at InTechnology.co.uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
More information about the Catalyst
mailing list