May
22
2009
That’s right folks, in this blog post I’ll show you how you can convert your entire MVC application into a REST-style XML webservice. And I’m not talking about refactoring tons of code … NO, we’ll plug this option in without changing a single thing to your action controllers.
This post will contain a detailed description of the concepts used. The source could of the plugin is also shown and finally how it will look like when using it.
Continue reading
3 comments | tags: action, controller, dispatch, dom, domdocument, domelement, exception, flow, framework, hook, mvc, php, plugin, rest, serialize, service, webservice, workflow, xml, zend | posted in IT, PHP, Zend Framework
Jan
31
2009
Let’s immediately start with a quote I found on php.net:
One of the key-point of PHP5 OOP that is often mentioned is that “objects are passed by references by default” This is not completely true. This section rectifies that general thought using some examples.
A PHP reference is an alias, which allows two different variables to write to the same value. As of PHP5, an object variable doesn’t contain the object itself as value anymore. It only contains a object identifier which allows object accessors to find the actual object. When an object is sent by argument, returned or assigned to another variable, the different variables are not aliases: they hold a copy of the identifier, which points to the same object.
Continue reading
1 comment | tags: asp.net, class, clone, copy, datamember, member, object, php, php5, property, reference, references, serialize, soap, soapclient, soapfault, webservice, wsdl, xml | posted in PHP
Recent Comments