Пример #1
0
 public function testCreateClientNameNotFound()
 {
     $this->setExpectedException('Client_Html_Exception');
     Client_Html_Catalog_Suggest_Factory::createClient($this->_context, $this->_templatePaths, 'notfound');
 }
Пример #2
0
 /**
  * Renders a list of product names in JSON format.
  */
 public function suggestAction()
 {
     $templatePaths = Base::getAimeos()->getCustomPaths('client/html');
     $client = \Client_Html_Catalog_Suggest_Factory::createClient($this->getContext(), $templatePaths);
     return $this->getClientOutput($client);
 }