}
$('#glm-event-pdf-submit').click(function(event){
eventForm = $('#glm-member-event-search');
- eventForm.attr('action', eventForm.attr('action') + '?pdf=1');
+ eventForm.attr('action', eventForm.attr('action') + '?glm-event-pdf=1');
});
}).call(this);
parent::__construct(false, false);
}
+ public function printEvents()
+ {
+ echo 'hello';
+ //include '/var/www/localhost/htdocs/pdfTest/index.php';
+ }
+
/**
* getCategories
*
$search = true;
$action = 'event-list';
}
- if (isset($_REQUEST['pdf']) && $pdf = filter_var($_REQUEST['pdf'], FILTER_VALIDATE_BOOLEAN)) {
+ if (isset($_REQUEST['glm-event-pdf']) && $pdf = filter_var($_REQUEST['glm-event-pdf'], FILTER_VALIDATE_BOOLEAN)) {
$search = true;
$action = 'pdf';
+ include '/var/www/localhost/htdocs/pdfTest/index.php';
+ //echo '<pre>$_REQUEST: ' . print_r($_REQUEST, true) . '</pre>';
+ exit;
}
if ( isset($_REQUEST['glm_event_from']) ) {
$fromDate = filter_var($_REQUEST['glm_event_from'], FILTER_SANITIZE_STRING);
$view = 'agenda.html';
break;
case 'pdf':
+ include '/var/www/localhost/htdocs/pdfTest/index.php';
$events = $this->getModelEventsData($categoryId);
echo '<pre>$events: ' . print_r($events, true) . '</pre>';
exit;
}
});
+//add_action('query_vars', function($vars){
+ //array_push($vars, 'glm-event-pdf');
+ //return $vars;
+//});
+//add_action('wp', function($wp){
+ //if ( array_key_exists( 'glm-event-pdf', $wp->query_vars ) && $wp->query_vars['glm-event-pdf'] == '1' ) {
+ ////echo '<pre>$this: ' . print_r($this, true) . '</pre>';
+ //echo '<pre>$_REQUEST: ' . print_r($_REQUEST, true) . '</pre>';
+ //die('here it is!');
+ //}
+//});