[Catalyst] Any chance there is an arbitrary limit to how many
classes you can load this way...?
jon at jrock.us
Tue Oct 9 22:41:02 GMT 2007
Juan Miguel Paredes wrote:
> On 10/9/07, Dustin Suchter <dsuchter at ucla.edu> wrote:
>> The fact that someone else had this problem makes me feel a tiny bit
>> better. At least I'm not *totally* insane.
> I once had a similar problem... not related to Views, but
> authentication, when defining about 20 classes in Schema, using
> DBIC::Schema. The problem, IIRC, was related to the regex searching
> at $c->comp('Foo') magic (search the list archive). In the end, it
> wasn't the number of loaded classes, but similarities on their names,
> when a class contained part of the name of another (e.g. Usuario,
> UsuarioInterno). In that case, simply adjusting the YAML configuration
> file worked (I had to change MyApp::Schema::MySchema::MyUserClass to
> MySchema::MyUserClass in myapp.yml). Are your schema classes
> following such a name scheme?
FWIW, this is going to burn users of View::Template::Declare also. =
Given YourApp::View::TD and a templates like YourApp::View::TD::*, set:
YourApp->config( default_view =3D> qw/View::TD$/ );
YourApp->config( default_view =3D> 'View::TD');
Otherwise RenderView will think that one of your templates is actually
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 370 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071009/563f=
More information about the Catalyst