How OpenLaszlo and CakePHP could team up.
Implementing different OpenSource CMS Systems brings up the same need for plugins each time. F.ex. You can find classified scripts , chats or galleries for Joomla, WordPress or Typo3 but they are all differently implemented. Every time you start again cleaning them up or enhancing them. But all the work is useless if you switch from one system to the other or want to use some totally new CMS Software.
One solution is of course taking special standalone software for the special task. But here too you have to clean up the mess. Most of the special special functions are not used and you need to update a couple of systems for every customer. Keeping track of the changes is another enerving job as well as programming the css for each browser (…pucke)
I´m thinking of something more usable which could be accomplished with the following tecniques. My idea´s are not new, i just want to draw a "OpenSource-software-mix scenario" to point out one possible attempt. To follow what i´m writing about you should take a look into this pdf:
openlaszlo_and_cakephp.pdf (10.08.2006 21:39)
The solution to those scattered pieces of Addons and Plugins could be a central webservice which would deliver the main funtionality. Let´s stick with the classifieds script.
The whole intelligence like the classified management, emails, user administration could be done with the cakePHP framwork. The user would login here to do all his adminsitrative tasks. Instead of rendering normal HTML pages for the public classifieds views Cake would just render pure XML.
The public view side would be programmed with OpenLaszlo which generates a standalone swf File. The connection between both is made over HTTP Request. Of course there are some variables which the SWF needs to fetch the correct URL´s. Those variables could reside in an config file contaning the user´s login, special url´s or settings for the flashfilm itself, like textsize.
The technical advantages of such an enviroment is that the implementer does not have to worry about technical details, updates, formating html and whatever comes his way. He can simply put the swf wherever he wants and it quickly shows the classifieds from the webservice. The enduser get´s a really rich dynamic enviroment which can only be accomplished with flash. The Service Programmer does also not have to worry about different CMS Systems or Server setups.
Of course you are not bound to the cakePHP framework for rendering xml and delivering the intelligence. Ruby on Rails is another damn nice framework for such a scenario and there is already a OpenLaszlo Plugin available. I choose cakePHP in this example because it runs whith most webspaces, whereas ruby on rails support is not so widespread.
Please note that this is just a rough draft of an idea. Such a couple-up is not only usefull for small enhancements of cms systems like mentioned at the start. What kind of idea do you have?
How OpenLaszlo and CakePHP could team up.
You can follow all the replies to this entry through the comments feed.
- By on 23.09.2006 at 13:39
- By on 11.08.2006 at 2:46


Nice little read (though I’m a bit slow in getting to it). I came across it after doing work to integrate OpenLaszlo with Code Igniter, an alternative PHP framework.
Hi Max,
Thanks a lot. That’s very generous. I’ll get back to you with questions and the feedback I got from the people in Berlin. The Ruby folks are very excited about the integration of OpenLaszlo and Rails.
Best,
Raju
Hi Raju,
Very cool! I did most of the client work for LoR, so please let me know how I can help make it work for you!
Regards,
Max Carlson
OpenLaszlo.org
Great post. Max, I know Sebastian Wagner did a lot of PHP coding for integration of OpenLaszlo with PHP. He’s working on a project with us right now in Berlin. I’ll talk to him and see if he’s interested in supporting the whole thing. I think that’s a great idea. As I already met Schorsch (his real name is Georg) in Cologne some time ago and we agreed to do some LZX/PHP integration that would be a good start.
Btw, there’s a Ruby User Group in Berlin. They asked me to do a presentation of Laszlo on Rails, which I will hold soon. So there’s enough interest in both technologies in Germany: LoR and Cake/LZX integration.
Hi,
The Laszlo on rails plugin is an implementation of a spec we’d love to see more widely adopted. Here’s a link to it:
http://wiki.openlaszlo.org/Database_Connector
Feel free to ask questions. LoR is a small subset of what’s there. There was some talk of a Cake PHP version of this earlier, and it would be great to see something running alongside rails.
Essentially, Laszlo on rails uses a simple lightweight restian XML API to retrieve pages of records, update, insert and delete. It should be fairly easy to modify Cake to do a similar thing. As you said, it has the advantage of being more widely deployed.
I look forward to talking more about this. Either email me or we can talk on the laszlo-dev mailing list.
Regards,
Max Carlson
Openlaszlo.org