sakkoulas Posted May 21, 2013 Share Posted May 21, 2013 i use dd/mm/yyyy date format and H:i time format and working fine Link to comment Share on other sites More sharing options...
Juergen Posted June 11, 2014 Share Posted June 11, 2014 @ Sakkoulas create a new php file called json-events.php and upload it in your root folder. But if I do that I am not able to call the variable $wire like "$eventdata=$wire->pages->get('/events/')->children();" like you post. Notice: Undefined variable: wire in /home/.sites/24........ I have tried it but it only works if json-events.php is in the template folder. But if I put it into the template folder, I am not able to call this file directly - I will be redirected. I took a look at your site and it it possible to call your json file via the browser. What could be the cause for this problem?!? Best regards Jürgen Link to comment Share on other sites More sharing options...
Juergen Posted June 11, 2014 Share Posted June 11, 2014 Sorry Sakkoulas, I have forgotten to include the index.php. Now it works. Link to comment Share on other sites More sharing options...
sakkoulas Posted June 11, 2014 Share Posted June 11, 2014 USE PROCESSWIRE’S API IN OTHER PHP APPS AND SHELL SCRIPTS 1 Link to comment Share on other sites More sharing options...
jacmaes Posted November 20, 2014 Share Posted November 20, 2014 Edit: wrong thread, sorry. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now