[fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated
md at delfire.net
Mon May 3 20:38:28 CEST 2010
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> All HTML code (inside our pascal code) is tagged with class of div id's. We
> then use CSS to adjust our UI the way we want.
> For inspiration of this concept, have a look at:
> All the pages (themes) available is all build with the exact same HTML file
> (nobody is allowed to change that file), just the CSS files are different.
> Pretty awesome!
Interesting... OK, thanks to sharing this idea.
> Our CGI applications (three of them) are just one part of our complete
> product. We have a desktop GUI part as well. The CGI applications reuse a
> lot of code from the desktop. We implement the Model-GUI-Mediator design
> pattern, to split UI code from Business Domain code. Our applications talk
> to a Firebird RDBMS, and use SqlDB components, but we do *not* code for
> SqlDB directly. Instead we use tiOPF (http://www.tiopf.com) which is a
> Object Persistence Framework to manage all our data persistence (loading
> and saving of Objects). So with a single compiler define we can switch from
> Firebird to MySQL or PostgreSQL etc without a single line of code that
> needs to change. We can even switch database components (eg: SqlDB ->
> FBLib) with a single compiler define, and again, no lines of code need to
Right. I also use an OPF made-in-home, but this is out of scope CGI's problems.
BTW, is tiOPF life?
Lee Jenkins <lee at datatrakpos.com> wrote:
> I am most interested to hear how tiOPF handles under a threaded environment
> when you move to FastCGI, Graeme.
More information about the fpc-pascal