Hi.
If i call requestAction() in a plugin controller to an action in a
controller in that same plugin, i get a "Cannot re-declare class" error.
Lets say i have a foo plugin with two controllers:
class oneController extends FooAppController
{
function someAction () {
// do something
return $result;
}
}
and
class otherController extends FooAppController
{
function someAction ()
{
$var = $this->requestAction('/foo/one/some_action');
}
}
When i call /foo/other/some_action, i get a "Cannot re-declare class
FooAppController in ...".
My guess is Cake's dispatcher process is not checking if FooAppController
is already defined and require()'ing it unconditionally.
Any thoughts?
Thanks in advance.
Best regards.
--
Gonçalo Marrafa <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---