bewweb Posted July 21, 2015 Share Posted July 21, 2015 Appml seemed easy and great, Trying to learn from the ground. While halted, just upon going into the 1st APPML Cases, the "Case Text File" I am using Webmatrix, and follow the tutorial.. 1. appml.php was downloaded from the site as provided (suppose only one appml.php file) 2. copy the Model from the site, and saved as "model_cd_from_txt.js" 3. inc_listcommands_nofilter.htm is also downloaded 4. copy the basic HTML code as indicated and save as "CDText.html" upon launching CDtext.html, the site asked for the appml_config.php file! what is this file, how to code it, if it is not for the purpose of connecting to a database? Link to comment Share on other sites More sharing options...
Ingolme Posted July 21, 2015 Share Posted July 21, 2015 According to this page, there is an appml_config.php file and they have instructions on how to create it: http://www.w3schools.com/appml/appml_php.asp Link to comment Share on other sites More sharing options...
bewweb Posted July 21, 2015 Author Share Posted July 21, 2015 Ingolme: Thank you, while the config.php is referring the connection to the database, while this case only refer to retrieve data from a CSV file. So what will be the content of such a appml_config.php file if dealing with the CSV or the coming XML and Json file. Link to comment Share on other sites More sharing options...
Ingolme Posted July 21, 2015 Share Posted July 21, 2015 I think the PHP implementation of AppML requires a database. Link to comment Share on other sites More sharing options...
bewweb Posted July 22, 2015 Author Share Posted July 22, 2015 In this AppML case, it deal nothing with DATABASE, it focus on the data retrieving from a text file (csv file) as well as data fetching from XML or Json file. It is the main purpose of this "AppML Cases" section as indicated. Link to comment Share on other sites More sharing options...
Ingolme Posted July 22, 2015 Share Posted July 22, 2015 If you're using AppML just for Javascript on the client side, you shouldn't need a config file, but if you're using PHP then you will need it regardless of whether you intend to use a database or not. For the AppML Case examples, don't follow the WebMatrix tutorial page because that involves server-side AppML. Just copy the code from the tutorial and substitute appml.php for a file that contains the AppML model. 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