* @copyright 2007-2015 Orange35 * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ require_once(dirname(__FILE__).'/../../config/config.inc.php'); require_once(dirname(__FILE__).'/../../init.php'); require_once(dirname(__FILE__).'/homefeaturedpaginated.php'); switch (Tools::getValue('method')) { case 'paginate' : $handler = new HomeFeaturedPaginatedAjaxHandler(); $content = $handler->getRenderedListByPage(); die(Tools::jsonEncode( array('result' => 'my_value', 'content' => $content))); default: exit; } exit; class HomeFeaturedPaginatedAjaxHandler { public function getRenderedListByPage() { $class = new HomeFeaturedPaginated(); $content = $class->getRenderedContent(); return $content; } }