/** * 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 = \Client_Html_Catalog_List_Factory::createClient($this->getContext(), $templatePaths); return $this->getClientOutput($client); }
public function testCreateClientNameNotFound() { $this->setExpectedException('Client_Html_Exception'); Client_Html_Catalog_List_Factory::createClient($this->_context, $this->_templatePaths, 'notfound'); }
public function testListBody() { $start = microtime(true); $client = Client_Html_Catalog_List_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"; }