/** * This renders a template from an ajax call */ protected function callRender() { $routeInfo = explode('/', $_REQUEST['routestring']); if (count($routeInfo) < 3) { throw new vB5_Exception_Api('ajax', 'api', array(), 'invalid_request'); } $params = array_merge($_POST, $_GET); $this->router = new vB5_Frontend_Routing(); $this->router->setRouteInfo(array('action' => 'actionRender', 'arguments' => $params, 'template' => $routeInfo[2], 'queryParameters' => $_GET)); Api_InterfaceAbstract::setLight(); $this->sendAsJson(vB5_Template::staticRenderAjax($routeInfo[2], $params)); }