调用所有Symfony Coders:New-B的EventDispatcher悄然失败


Calling all Symfony Coders: New-B's EventDispatcher quietly fails


我很困在这里。我试图在Ajax操作中包含EventDispatcher,但它只是悄悄地失败了。我对symfony很陌生,目前正在研究基于symfony 1.1.6的"VImp"CMS(http://vimp.com/)的定制。
/apps/xx/modules/xx/actions/base/BaseXxActions.php有这样的:

public function executeAjax {  
    switch($this->getVar('action')) {  
        case 'something':  
            sfContext::getInstance()->getEventDispatcher()->notify(
              new sfEvent(
                $this,
                'activity',
                array(
                  'action' => 'user.something.save',
                  'user' => sfContext::getInstance()->getUser()->getUser(),
                  'something'=>$something
                )
              )
            );  
        break;    
    }  
}

现在,这只是悄悄地无所事事。服务器或symfony日志中没有任何内容。我几乎只是从之前的几行复制/粘贴了该行,我使用哪些参数似乎并不重要。
有人可以在这里帮助我吗?我在哪里以及如何获得有关失败原因的具体信息?
谢谢
托马斯
(我也无法让语法突出显示工作...

如果有人遇到同样的问题......我终于找到了我的解决方案:

class frontendConfiguration extends sfApplicationConfiguration 
{  
    public function configure()  
    {  
       // Register our listener  
       $this->dispatcher->connect('user.something.save', array('myClass', 'itsMethod'));
    }  
}

这告诉事件调度程序在触发事件时该怎么做。