Home

Kooka Page

Browse

KookaKart with php.MVC, a Case Study


KookaKart Demo
(Session handling is broken again on the PHP hosting server :(
I'll try to get Rackhost to upgrage the PHP version ASAP
)

WS KookaKart Demo This demo provides an example of using php.MVC to provide methods as Web Services or RPC (Remote Procedure Calls). Two classes have been adapted from the CartAction class to intercept and handle the RPC's:

1) WSCCartAction is the client-side Action class that handles an "Add Item" action in the addCartItem method and forwards the call to the server-side addCartItem method for processing.

2) The WSSCartAction addCartItem method receives the Web Service remote method call from the client-side Action class. The necessary cart processing is performed and the results are returned to the client server as a serial data packet.

The "Recalculate" cart operation is also setup as an RPC method. The updateCart method of the WSCCartAction class handles the remote method call in a similar way to the addCartItem method.

Please note that "client-side" referes to the client Web server and not to the end users machine or browser.

Usage:
This application uses session cookies to maintain the cart state.

Download KookaKart Case Study
KookaKart Case Study