adding autocomplete from backend source into add show page.

This commit is contained in:
naomiaro 2011-01-25 23:14:35 -05:00
parent c109fb5f01
commit a607951ed9
4 changed files with 37 additions and 27 deletions

View file

@ -5,7 +5,9 @@ class UserController extends Zend_Controller_Action
public function init()
{
/* Initialize action controller here */
$ajaxContext = $this->_helper->getHelper('AjaxContext');
$ajaxContext->addActionContext('get-hosts', 'json')
->initContext();
}
public function indexAction()
@ -32,9 +34,10 @@ class UserController extends Zend_Controller_Action
public function getHostsAction()
{
$this->view->hosts = User::getHosts();
}
$search = $this->_getParam('term');
$this->view->hosts = User::getHosts($search);
}
}