When overiding a plugin module's action.class.php, it seems that the
autoloading of the Base*Action class from the plugin module is not
working.
These classes are in the config_autoload.yml.php, prefixed with the
module name.
However, they still fail to load.
The problem appears to be in sfAutoload.class.php...
170 // see if the file exists in the current module lib directory
171 // must be in a module context
172 if (sfContext::hasInstance() && ($module =
sfContext::getInstance()->getModuleName()) && isset($this-
>classes[$module.'/'.$class]))
173 {
174 require($this->classes[$module.'/'.$class]);
175
176 return true;
177 }
($module = sfContext::getInstance()->getModuleName()) evaluates to false
in sfContext.class.php
314 public function getModuleName()
315 {
316 // get the last action stack entry
317 if (isset($this->factories['actionStack']) && $lastEntry =
$this->factories['actionStack']->getLastEntry())
318 {
319 return $lastEntry->getModuleName();
320 }
321 }
so, sfContext tries to get the module name from the action stack but
the stack is empty. I think this is because the sfActions object is
not instantiated yet.
Can we get the module name from somewhere else?? for instance the
routing??
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---