public function peoplesearchAction() { $peoples = new Peoples(); $people_options = $peoples->getNamesSearch($this->_getParam('q')); echo Zend_Json::encode($people_options); }