摘要: If you need to export database data as a CSV file in Symfony, try this;In the action:public function executeRegistrantsToCsv(){ $id = $this->getRequestParameter('id'); $c = new Criteria(); $c->add(RegistrantPeer::EVENT_ID, $id); $c->add(RegistrantPeer::STATUS, 1); $this->aObjReg 阅读全文
posted @ 2011-10-04 23:48 Lux.Y 阅读(760) 评论(0) 推荐(0)
摘要: You need to modify your EntityFormFilter (where Entity is your object class - Article, Book, etc.).Three easy steps1) configure functionAdd an input for each field you want to include in your filter$this->widgetSchema['name'] = new sfWidgetFormFilterInput(array('with_empty' => 阅读全文
posted @ 2011-10-04 18:40 Lux.Y 阅读(387) 评论(0) 推荐(0)