Strange, I do use the requestHandler in my app_controller.

Line 213 is:
if ((!$this->auto) || isset ($controller->params['requested']) ||
$controller->RequestHandler->isAjax() || ($this->Session-
>read('Config.components') === '0')) {
//...
}

Gerben.

On 12 mrt, 11:40, "AD7six" <[EMAIL PROTECTED]> wrote:
> On Mar 12, 10:28 am, "gerbenzomp" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi AD!
>
> > Thanks for your reply!
>
> > Ok, I'm beginning to see it:
>
> > I've created a new component: test.php in controllers/components
>
> > class TestComponent extends TemplateComponent {
> >     var $name= 'Test';
>
> >     function _getData() {
> >         // some data for testing purposes
> >         $data = 'hello world';
> >         return $data;
> >     }
>
> > }
>
> > In my posts_controller I added:
>
> > var $components = array ('Test');
>
> > And in views/posts/index.thtml:
>
> > <? php print_r($MenuContext); ?>
>
> > But I keep getting the error:
>
> > Call to a member function on a non-object in /var/www/vhosts/zomp.nl/
> > httpdocs/framework/app/controllers/components/template.php on line 213
>
> > Maybe I'm still doing something silly, but I don't see it now.
>
> HI Gerbenzomp,
>
> What is line 213 for you.
>
> I would guess that you are currently not using thre requestHandler
> component, the code assumes you have it declared in your app
> controller. You can just remove that test, which isn't in that form
> any more in my dev env.
>
> HTH,
>
> AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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