I'm hoping that someone can give me some troubleshooting ideas. I have a
CakePHP 2.2.7 application/site with 31 controllers in addition to
AppController. Thirty of those controllers correctly import (actually use)
AppController so that variables set in it are available in the other
controllers and so forth. One controller doesn't seem to inherit anything
from AppController. Just like all the other controllers, I have this on the
first line:
App::uses('AppController', 'Controller');
The class declaration looks like this:
class HowtosController extends AppController {
For the life of me, I can't figure out why the HowtosController is failing
to inherit everything from AppController, while all the other controllers
do. I've looked at everything that I can think of, and nothing seems to fix
it. Basically, I'm using the Cake-Menu plugin which sets a $menu variable
in AppController, and the HowtosController isn't receiving that. I also
display the user name (if one is logged in) using $user['username'] which
results in an "Undefined variable: user" in all the views deriving from
HowtosController. (So it's not limited to just one plugin or the Auth
component. It's across the board.) Looking at the available variables in
the Debug Toolkit, none of the variables that one would expect to see are
in the Howtos views.
Can anyone give me any suggestions on how to continue troubleshooting?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.