Select [Symfony]--从所选项目获取值

Select [Symfony]--从所选项目获取值,select,jquery,symfony1,widget,Select,Jquery,Symfony1,Widget,如何从symfony中的select选项中获取所选项目的值?来自下面的文章 我的表格中有该配置: $this->widgetSchema['category_id'] = new sfWidgetFormDoctrineChoice(array( 'model' => 'Category', 'method' => 'getLibelleCat', 'add_empty' => 'select category

如何从symfony中的select选项中获取所选项目的值?来自下面的文章

我的表格中有该配置:

$this->widgetSchema['category_id'] = new sfWidgetFormDoctrineChoice(array(
        'model'     => 'Category',
        'method'    => 'getLibelleCat',
        'add_empty' => 'select category'
 ));

$this->widgetSchema['article_id'] = new sfWidgetFormDoctrineDependentSelect (array(
        'model'     => 'Article',
        'method'    => 'getLibelle',
        'depends'   => 'Category',
        'add_empty' => 'select article'

));

谢谢

嗯。。。我不确定是否理解这个问题,但我建议:

$this->getValue('category_id');

不,不是。在从第二个列表widgetSchema['article_id']中选择选项之后,我正在搜索表-article的显示细节。。。我怎么做?