コード例 #1
0
 /**
  * Renders a list of product names in JSON format.
  */
 public function suggestAction()
 {
     $templatePaths = Base::getAimeos()->getCustomPaths('client/html');
     $client = \Aimeos\Client\Html\Catalog\Suggest\Factory::createClient($this->getContext(), $templatePaths);
     return $this->getClientOutput($client);
 }
コード例 #2
0
ファイル: FactoryTest.php プロジェクト: mvnp/aimeos-core
 public function testCreateClientNameNotFound()
 {
     $this->setExpectedException('\\Aimeos\\Client\\Html\\Exception');
     \Aimeos\Client\Html\Catalog\Suggest\Factory::createClient($this->context, $this->templatePaths, 'notfound');
 }