An extended example

In Part 1 we showed you the very basics of Arcos. In Part 2, we show more features by means of a larger example.

In this example, you will create four web pages:

Notes

Since we do not want to modify any of the previous pages we have written, we will put the new page definitions into a file called configuration.bigexamplepages.xml.

We will put the recordset definition into a separate file called configuration.recordsets.xml.

To create the extended example

  1. Create the new configuration.1.xml file and save it in the /config directory. Here is our code:
    <Configuration>
       <FileInclude File="configuration.database.xml"/>
       <FileInclude File="configuration.pages.xml"/>
       <FileInclude File="configuration.recordsets.xml"/>
       <FileInclude File="configuration.bigexamplepages.xml"/>
    </Configuration>
  2. Create the configuration.recordsets.xml file in the /config directory. The file is explained in the Recordset topic.
  3. Create the four pages and the template file, as explained in the Page definitions topic.
  4. Using your web browser, run the GenerateAllPages script (base URL followed by /admin/GenerateAllPages.php. This will highlight any errors.
  5. View the search input page (base URL followed by InputSerch) in a web browser.