Vineet Kumar Saini

Vineet Kumar Saini

  • NA
  • 10.4k
  • 7.4m

How to call a php file in Joomla component

Sep 13 2012 8:32 AM
Hi Friends..

I creating a component in joomla, i want o call a php file on button click in joomla component ? Please tell me how to call php file on button click in joomla component ? Please help me  ?

my code is

window.location.href="file_get_contents('.JPATH_BASE.'/pdffile.php)?id=<?php echo $dd; ?>";

Thanks.