/**
  * Renders the catalog list section.
  */
 public function listAction()
 {
     if (is_object($GLOBALS['TSFE']) && isset($GLOBALS['TSFE']->config['config'])) {
         $GLOBALS['TSFE']->config['config']['noPageTitle'] = 2;
     }
     $templatePaths = Base::getAimeos()->getCustomPaths('client/html');
     $client = \Aimeos\Client\Html\Catalog\Lists\Factory::createClient($this->getContext(), $templatePaths);
     return $this->getClientOutput($client);
 }
Esempio n. 2
0
 public function testListBody()
 {
     $start = microtime(true);
     $client = \Aimeos\Client\Html\Catalog\Lists\Factory::createClient($this->context, $this->paths);
     $client->setView($this->view);
     $client->getBody();
     $stop = microtime(true);
     echo "\n    catalog list body: " . ($stop - $start) * 1000 . " msec\n";
 }
Esempio n. 3
0
 public function testCreateClientNameNotFound()
 {
     $this->setExpectedException('\\Aimeos\\Client\\Html\\Exception');
     \Aimeos\Client\Html\Catalog\Lists\Factory::createClient($this->context, $this->templatePaths, 'notfound');
 }