Archive by Author

Zend Framework 2: Authentication + Acl using EventManager

This is a first try to implement Zend Authentication with Zend Acl under ZF2. I used the EventManager to catch the MVC preDispatch Event so that I can evaluate if the user has or not permission for the requested page.

Git Over HTTP (git-http-backend)

Git SCM

I found really annoying that all Git guides I found talked about using Git over SSH, thats because I googled until I found that Git now comes with git-http-backend, which lets you to configure your webserver to serve git over HTTP/HTTPS.

SimpleXML vs XMLWriter vs DOM

PHP+XML

I have done a little Performance test for the 3 different methods available in PHP for XML generation. For this test I wrote a little script which generates the same XML File using the different methods.

Read more... (368 words, 4 images, estimated 1:28 mins reading time)

Eclipse/ZendStudio custom username for Code Templates

At work we started using Zendstudio, as the installation on our Linux Boxes is global, we can’t edit the ZendStudio.ini, and the only way to specify our custom username for Code Templates is using the commandline arguments. The easiest way is to create a shell script to start ZendStudio:

Read more... (245 words, estimated 59 secs reading time)

Google +1 for Sharedaddy

Google published on 01 June the possibility to add Google +1 to your page, which is a great service to add to the existing sharing services.

Im using Sharedaddy, and I will not install another extra plugin to support Google +1 and the Sharedaddy option to add a custom service is not prepared for dynamic services like this one. That’s because I looked to integrate the service into Sharedaddy avoiding to change to much the plugin.

Read more... (979 words, estimated 3:55 mins reading time)