The Zend Framework Zend_Locale Component PRO

Using the Zend_Locale component we can represent different locales. Each locale is a combination of a language and a country. Usually we will set the default locale of our application during the execution of our bootstrap file. Zend_Locale::setDefault(‘he_IL’); There are various possible ways for using the Zend_Locale. The following code sample creates new Zend_Locale objects […]

The Zend Framework Zend_Debug Component PRO

We can use the Zend_Dubug component for dumping back to the web browser screen the values of expressions in our code. $a = 23; $b = 12; $sum = $a + $b; Zend_Debug::dump(“a=”.$a); Zend_Debug::dump(“b=”.$b); Zend_Debug::dump(“sum=”.$sum); The following video clip shows a code sample for using the Zend_Debug component.

The Zend Framework Zend_Log Component PRO

Using the Zend_Log component we can easily write log messages tracking the execution of our code. We can write these messages to various destinations, such as a plain text file or a database. //writting log message $logger = new Zend_Log(); $writer = new Zend_Log_Writer_Stream(‘zfapp.log’); $logger->addWriter($writer); // attaching formatter to the writer $format = ‘%timestamp%: %priorityName%: […]

Android Logcat & PhoneGap PRO

When developing an hybrid application we encounter difficulties when tried to track (debug) code we wrote in Java Script that is executed inside the WebView object. The problem becomes even more complex when using PhoneGap. The following code sample shows how we can use the android logcat for getting log messages from the code we […]

Skip to content Update cookies preferences