Hi Evrybody,

I want use "Controller::referer()" method in a component, is it
possible?

I've tried this (in PHP 5 context):

class MyComponent extends Object {
   public $controller = null;

   public function startup(&$controller) {
        $this->controller = &$controller;
   }

   public function MyCustomFunction () {
        $var = $this->controller->referer();
   }
}

But it doesn't work... No data is stored in $var.

Why? Have you an idea?
Must I write something in the Controller::beforeFilter() ??

Thank's by advance and sorry for my frenchy simple English!

BR

Avairet


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