I am trying to make it so that some data to an element is present on EVERY page on my entire app. So, to do this I made an app_controller.php in /app and I have the following:
class AppController extends Controller { function beforeFilter() { // grab all of the categories. $this->set('navItems', $this->Category->requestAction('/categories/ getCategoryList', array('return'=>1))); } } The problem is that I am getting the above error: Call to a member function requestAction() on a non-object. This seems to indicate that there is an issue with my model as it is not registering as an object however. My Category model seems to be intact. I tested it by sending my browser to '/categories/' and '/categories/getCategoryList' with success using a controller and view. Model for category.php, simple: class Category extends AppModel{ var $name = 'Category'; } I am using cake 1.2 .. I must be missing something obvious. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---