Exemplo n.º 1
0
 /** 
  * Authors Action
  * 
  * Return list of Authors based on key words sent as query (GET)
  * NOT A STAND ALONE PAGE
  */
 public function authorsAction()
 {
     $key = $this->getRequest()->getQuery()->key;
     $sm = $this->getServiceLocator();
     $books = new Books($sm);
     $view = new ViewModel(array('authors' => $books->listAuthors($key)));
     $view->setTerminal(true);
     return $view;
 }