Ooo this is going to be painful ;)
A parse error means there is something fundamentally wrong with the way
you have written the code - it isn´t a problem that this object
doesn´t have that method etc.
You can´t do this:
var $array = $this->requestAction('/ssites/getSites');
What you _might_ be wanting to do is
///
var $array = NULL; // a place holder. give it a better name!
function beforeFilter ()
{
$this->array = $this->requestAction('/ssites/getSites',
Array("return"=>true); // this line will set the result of
requestAction to the variable 'array'. Note the return value
parent::beforeFilter();
}
\\\
I hope I got the syntax right - if not it should be very easy to fix
(use the cakesearch).
HTH,
AD7six
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---