Oops sorry here is the thread on open laszlo
 
 
Cheers,
 
Aaron.
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Salama
Sent: Tuesday, 27 June 2006 7:26 AM
To: Rodrigo Vera
Cc: Laszlo Users; Justin Kennedy
Subject: Re: [Laszlo-user] Laszlo CRUD

Would you mind sharing that with the community?

Thanks,
Daniel

On Jun 23, 2006, at 4:50 PM, Rodrigo Vera wrote:

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

***************************** Disclaimer *****************************

The contents of this electronic message and any attachments are intended only for the addressee and may contain privileged or confidential information. They may only be used for the purposes for which they were supplied. If you are not the addressee, you are notified that any transmission, distribution, downloading, printing or photocopying of the contents of this message or attachments is strictly prohibited. The privilege of confidentiality attached to this message and attachments is not waived, lost or destroyed by reason of mistaken delivery to you. If you receive this message in error please notify the sender by return e-mail or telephone. Thank you.

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

Reply via email to