**
I have a aplication in cakephp2. In home.ctp I wan't to use a javascript
function to load a file from filesystem and create a track in a map, but I
donn“t know how to locate it.
In the javascript function I declare a var with the name of the file and
then I check if the file exists, and always return false.
var gpxfile='WWW_ROOT.files.DS.hoyo.gpx';
if(file_exists(gpxfile)){
alert('Si existe');} else {
alert('No existe'); }
I tried with the names:
var gpxfile='WWW_ROOT.files.DS.hoyo.gpx';
var gpxfile='/app/files/hoyo.gpx';
var gpxfile='/files/hoyo.gpx';
var gpxfile='/webroot/files/hoyo.gpx';
But nothing. How can I locate it?
It is necesary to configure the core.php?
Thanks
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.