Today my Soap datasource has been added into the Cakephp datasources repository by Graham Weldon.
Great to see my work got accepted.
SoapSource added into the Cakephp datasources repository
SoapSource, a SOAP Client Datasource for CakePHP
Update: Fixed some stupid typo’s in the documentation.
I’ve published my SOAP Datasource on Github, you can find the sourcecode in the ‘soapsource‘ repository.
SoapSource allows you to connect with SOAP servers that support Wsdl. I also started implementing functionality for non Wsdl SOAP servers, but I don’t think I will continue on this.
SoapSource now supports non wsdl servers also, you can add ‘uri’ and ‘location’ parameters to your datasource configuration now.
In order to use the Datasource you will need to have PHP5 installed with the SOAP extension.
Read the full article
Cakephp router and prefixes
Cakephp has been supporting admin routes for a long time. It’s also possible to use custom prefixes next to your admin routes for extra flexibility. However you will probably face some problems when you start using prefix routes. I’ll show you how to handle some of them.
Read the full article
Using JSON in CakePHP 1.2
May 8th 2008 – Controller::$beforeFilter has been deprecated a while ago, i’ve updated the example using Controller::beforeFilter()
Almost an half year ago I created jsonComponent for CakePHP, since then it has been used by quite a few people including myself.
About 3 months ago I started developing with CakePHP 1.2, one of the projects I’m working on is Pagebakery. Pagebakery relies heavily on AJAX and JSON and it’s therefore a perfect opportunity to experiment with CakePHP’s new features.
One of those features is Router::parseExtensions(). ParseExtensions allows you to parse the extension in your request and let Cake select alternate layouts and views automatically.
Another feature I found is JavascriptHelper::object(), this method is also available in CakePHP 1.1 but I only stumbled on it recently. It’s build-in JSON support in CakePHP, we no longer need the jsonComponent!
I’m going to explain you how to setup CakePHP 1.2 to output JSON with help of Router::parseExtensions() and the JavascriptHelper::object() method.
Read the full article