Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read/write to XML file in data folder
Thank you, I found it last night but one problem freeze me in place and I can't go forward.
My main goal is to create form where data are saved and read to/from XML. This form will be on one page, so I do not need plugin (because as I understand from Wiki plugin is displayed on every page). I created in my template folder somefile.php and create in it typical template (all working OK). Assign this template in Admin->Pages with one page.
Now if I put in this file code bellow (of course have correct xml file and so on) it read nothing.
$getdata = getXml(GSDATAOTHERPATH. $file . '.xml');
echo $getdata->node;
It point me to conclusion maybe it working only in plugin not in template files?
And second consideration: I'm still not sure where to put my XML file (but I was trying every place :-) ).
If using plugin and GSDATAOTHERPATH it is clear (in data/other/myxmlfile.xml) but if using template is it the same or GSDATAOTHERPATH point to different place?

Again thank you for your time :-)

Best wishes

Messages In This Thread
Read/write to XML file in data folder - by arek1 - 2013-05-17, 22:33:07
RE: Read/write to XML file in data folder - by arek1 - 2013-05-18, 16:40:52

Users browsing this thread: 1 Guest(s)