Hi,

Well... As a part of a resent debvelopment of mine y had to use a PHP backend for connecting with a laszlo aplication via HTTP, primary using POST...


The idea was to create a class handling the http requests an dispatching them to the apropiate CRUD object: Creating,Reading, Updating and Deleting data from a  database using a general connector so you can change the database engine. Every CRUD class implements a method with the name of a data model . This PHP backend is a susbistem wich inputs are: action, model and data... so yo can especify in the POST, by example: create user bob .... so the Dispatcher send the request (in the laszlo xml form) to the class Creating where there is a method called "user" which receives "bob"... inside this method there are instructions to do this in the database (translating the xml, with an instance of a helper XML class, and using the generic connector)... the ouptput is redirected then to a Reading object where every method (also representing a data model) just return the apropiate xml for laszlo....

As you can see there are also other helper classes like LaszloXML wich translate xml to arrays for making SQL operations and validators of data...

The product wich motivates this framework is ended but i consider the framework, still, a work in progress... in ALPHA development state.

If you like i can send you the framework, ill be glad if you use it. ;) it´s open source, totally.

Best,
Rodrigo Vera
PHP and Laszlo Developer.



2006/6/23, Justin Kennedy < [EMAIL PROTECTED]>:
Hi,

I read on the laszlo forums that you are developing a crud framework in
Laszlo.

Can you tell me more about it?

Thanks!

--
Justin Kennedy
Maritime Source, Inc.
http://maritimesource.ca



_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to