ahh. Thanks for the info.. makes sense.

On Feb 28, 8:49 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> requestAction is a method of Controller not Model
>
> try
>
> $this->requestAction(...
>
> seehttp://api.cakephp.org/class_object.html#c40a38b60a3748b9cf75215b92ee...
> andhttp://manual.cakephp.org/chapter/controllers
>
> On 2/28/07, phirschybar <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > 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.
>
> --
> ==
> S. DeVore
> (the old fart) the advice is free, the lack of crankiness will cost you
>
> - its a fine line between a real question and an idiot


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to