i'm working with php5.
and nope, it still doesn't work..
function startup(&$controller) {
$this->controller = &$controller;
}
and in the component's function:
var_dump($this->controller);
either shows a bool TRUE if i set it up, or a null if i don't set it
up.
if it's not defined at all at the start, i get an error too.
[EMAIL PROTECTED] wrote:
> what you do works on php5, not php4
> to make it work on both, you have to write the assignment like this:
>
> function startup(&$controller)
> {
> $this->controller = &$controller;
> }
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---