• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
calling base_url() or site_url() in the external js file

#6
[eluser]boltsabre[/eluser]
Quote:$data['js_vars'] = 'var base_url = "<?php echo base_url(); ?>";';

Shouldn't that be without the "var" to make it global in JS? You won't be able to access it in functions unless you pass it manually otherwise???


Messages In This Thread
calling base_url() or site_url() in the external js file - by El Forum - 07-03-2013, 04:27 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.