fml 8 tutorial
Prev | Chapter 30. Create A New Program | Next

# Create A Program (CGI)

The main part of CGI program is implemented as an FML::CGI::XXX class. These modules have the following relation.

            FML::Process::Kernel
                    |
                    A
            FML::Process::CGI::Kernel   uses-a CGI
                    |
                    A
            FML::Process::CGI
                    |
                    A
            FML::CGI::XXX

How to write CGI programs is same as one of CUI. GUI modules locate under FML::CGI to clarify the difference between CUI and GUI.

In the case of CGI, prepare the following methods for screen control in FML::CGI::MODULE.

    html_start()
    html_end()

and

    run_cgi_main()
    run_cgi_title()
    run_cgi_navigator()
    run_cgi_menu()
    run_cgi_command_help()
    run_cgi_options()

These methods are called from verify_request() and run() in FML::Process::CGI.

CGI process is driven by FML::Process::CGI. run() method calls

    $curproc->html_start($args);

call a set of run_cgi_xxx() methods

    $curproc->html_end($args);

to control screen.

At 2001/11, FML::Process::CGI::Kernel consists of the following methods: [1]

    new()
    prepare()
    verify_request()
    run()
    finish()

You do not need edit these files. FML::CGI:: is called at run() method.

### Notes

[1] | Almost cases, FML::Process::Kernel method is overloaded by other modules. So, not called directly.

Prev | Home | Next
Create A New Program | Up | fml8 Mail Delivery System

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.