I just uploaded a first version of my cakephp scripts.
Bakeme is a cakephp application skeleton with customized bake scripts, which enables you to create advanced, data-driven websites.
Some of the features are:
- Pasword protected backend, based on users in the database
- Customized form helpers to add fckeditor input fields, server side file browser fields, datepickers for date(time) fields, autocompletion functionality instead of comboboxes (if you set autocomplete to true using the extendedForm helper).
- SoftDeletable behavior, so database records aren’t deleted instantly, but flagged as deleted
- More advanced code generation, to generate nicer looking backends, based on your models
- Option to bake all controllers instantly (using cake bake controller all (admin))
- Option to bake all views instantly (using cake bake view all)
- View code generation, to ajax sort records of models which have a field “order”.
- Integration of cakeswxphp, which enables remoting on your website through swx, amf or json
- …
More info at the bakeme page…
The first beta of the new version of SWX was released yesterday. This new version brings AS3 and Flash Player 10 support. I decided to update CakeSWXPHP, to support this new version of SWX. You can download a new version, from my CakeSWXPHP page.
I had some issues today using the cakephp swiftmailer component. It still relied on the older version (pre version 3) of swiftmailer. There are quite some changes between SwiftMailer 2 and 3, and I decided to adjust the SwiftMailer component so it works with SwiftMailer 3.
Please note that this is the PHP5 version. To get it working in PHP4, you need to change the constants in the connect_sendmail and connect_smtp…
Download CakePHP SwiftMailer 3 Component.
Cakeswxphp enables you to use the cakphp rapid application framework as your remoting backend. No longer writing complex sqls, escaping query strings,… As some of you have noticed, cake does slow your remoting down a bit, as more classes are loaded to give you this ease-of-use. I did some benchmarks, comparing amfphp and swx with cakeswxphp 1.1 and cakeswxphp 1.2. I ran the echoData service 10 times, and took the average speed of those calls. These are the results:
SWX: 346ms
CakeSWXPHP 1.1: 350ms
CakeSWXPHP 1.2: 369ms
AMFPHP: 57ms
CakeAMFPHP 1.1: 111ms
CakeAMFPHP 1.2: 126ms
As we already know, AMFPHP is fast as hell. The CakePHP version is 2x slower because of the extra classes & functions cakephp executes. The difference between SWX and CakeSWX isn’t that big.
After that, I turned out eaccelerator (PHP caching / accelerator system) and ran the benchmark again:
SWX: 347ms
CakeSWXPHP 1.1: 364ms
CakeSWXPHP 1.2: 362ms
AMFPHP: 50ms
CakeAMFPHP 1.1: 64ms
CakeAMFPHP 1.2: 67ms
Not much difference between the first results without the caching, except for the Cake AMF gateway: it seems like using a php accelerator makes the cakeamfphp almost as fast as the native amfphp!
I’ve included the benchmark scripts:
cakeswxphp SWX benchmark
cakeswxphp AMF benchmark (AS3)
After some user input, I updated the cakeswxphp packages. I also started a branch which supports cakephp 1.2. There is a change in the gateway locations: you no longer connect to cake_swx_gateway.php or cake_amf_gateway.php, but to swx.php and amf.php (default locations in swx). This should make it even simpler to start with (cake)swx!
Again, you can download it at the cakesxwphp page…
So, you want to learn how to create a sexy blog in flash, creating posts, comments, database storage, …? Are you afraid of spending hours writing complex queries, parsing XML data or writing loads of php files? Don’t be, and see the power of cakephp and SWX combined. CakePHP being a rapid development framework for PHP and SWX, the native data format for the flash platform! Continue reading ‘flash remoting with SWX and CakePHP’
Aral Balkan released SWX version 1.0 a few weeks ago. I finally found the time to incorporate the changes into CakeSWXPHP! The changes include the swxAssembler class (instead of the old swfCompiler) and the rebranded service explorer.
Go to the cakeswxphp page for the latest downloads!
I took some time updating my cakeswxphp package to the SWX beta 1.3. One of the new features is the new service explorer from SWX.
You can test your cake gateway, pointing your browser to the /explorer/ directory, gateway location being: cake_amf_gateway.php
Go to the cakeswxphp page for the latest downloads!
Enjoy!
As some of you might know, I’m a great fan of the cakephp framework. It is a rapid application framework for php. Cakephp already had a subproject called cakeamfphp. Looking at the code from cakeamfphp, I was able to get SWX running and call the cake controllers as remoting services.
Go to the cakeswxphp page for the latest downloads…
Just copy/past in your cake directory! Gateway locations are:
swx.php (SWX)
amf.php (AMFPHP)
json.php (JSON)
Currently it uses an adjusted version of SWX, based on SWX beta 1.0. I will try to update it to future versions of SWX when I get the time…
More info about SWX and cakephp at:
http://www.swxformat.org/
http://www.aralbalkan.com/ (Aral Balkan, SWX author)
http://www.cakephp.org/
Enjoy!
Recent Comments