[How To] Use XSLT to transform XML documents into other formats, like XHTML

XSL stands for EXtensible Stylesheet Language and as the name suggests it is a styling language for XML documents. XSLT stands for XSL Transformations. XSLT is used to transform an XML document into another document formats,We will be transforming XML into HTML and XHTML. Usually XSLT transforms each XML element into an (X)HTML element. Lets [...]

Read full story · Comments { 0 }

[CakePHP] A slightly modified QRcode Helper

I was working on a project where I needed a helper to create QRcode by various methods. After searching I found a good CakePHP QRcode Helper by Max Dörfler which helped me a lot but few functions were still missing in that, like generating QRcode for Wifi network. The allowed contents are: free text contacts [...]

Read full story · Comments { 0 }

How to track SQL errors in CakePHP on production site

In a CakePHP application, if there is any SQL error and debug level is set to greater than 0, then the complete error message from the database is displayed on the screen, but if the debug is set to 0 it just gives something like "unable to add" or worse a blank page. This can [...]

Read full story · Comments { 3 }

[CakePHP] Sending emails more robustly

Sending emails in CakePHP using the Email component is a straight forward job. You will find ample documentation about it in the cakephp cookbook. It is a simple and easy to use component. However, one common mistake most of us make is writing the same code to configure the email component at numerous places throughout [...]

Read full story · Comments { 5 }