Thursday, August 18, 2011

Subclassing one's own Controllers

I'm a reasonably-experienced cake developer (several shipping apps
over a few years), and I've now got a project with a well-developed
Controller class that now requires several variations, all of which
would still rely on the same model. My general OOP instinct is to
subclass the controller class, but when I try that in cake (1.3) I get
a class-not-found error. I've seen some discussion of using behaviors
for this, but that seems contrary to this setup, where the main
controller has a model, plenty of views, methods, etc.

Advice?

thanks

-eric

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate