> If this is indeed the case, why is Jonathan seeing this in his
> autoloader cache?
exactly!
I just realised that part of the problem is the sf_compat plugin. If I
disable this, then sfContext::hasInstance() does get a valid sfContext
object. However, the problem is not solved.
The code now chokes when it tries to get the module name from the
sfContext instance.
($module = sfContext::getInstance()->getModuleName()) evaluates to NULL
...
public function getModuleName()
{
// get the last action stack entry
if (isset($this->factories['actionStack']) && $lastEntry = $this-
>factories['actionStack']->getLastEntry())
{
return $lastEntry->getModuleName();
}
}
...
print_r($this->factories['actionStack']->getLastEntry())...
sfActionStack Object (
[stack:protected] => Array ( )
)
So the stack array is empty
????
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---