in the form
$this->widgetSchema['login_id'] = new sfWidgetFormJQueryAutocompleter(array(
'url' => '/ajax/getUser',
));
and in the action of executeGetUser
$this->getResponse()->setContentType('application/json');
$users=Doctrine::getTable('user')->getLoginIDList();
return $this->renderText(json_encode($users));
And in the userTable which inside Doctrine
$q=Doctrine_Query::create()->select('login_id')->from('user')- >execute();
foreach($q as $row){
$login_id[$row->login_id]=$row->login_id;
}
return $login_id;
hope this help =]
MarcGrabanski.com - 1 views
2More
Mi cuaderno de trabajo: Git: El fichero .gitignore - 0 views
« First
‹ Previous
41 - 60 of 87
Next ›
Last »
Showing 20▼ items per page