Jump to content

AppML Case Text File


bewweb

Recommended Posts

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...