jQueryMobile, Ajax, WebSockets, MongoDB & PhoneGap Free Lectures INFO

On December 20th, I am goimg to deliver 6 short jump start free lectures in Holon Institute of Technology. The first lecture starts at 0800 and it covers my personal tips for learning programming languages. I will overview my recommened tips and share my experience. This lecture is highly recommended for every person who wants […]

Debugging in Slim Framework PRO

The Slim framework allows us to enable a debugging mode. Once doing it, each time an exception is thrown the Slim framework will generate a detailed debugging message. The following code sample shows how to do it. <?php namespace Com\LifeMichael\Samples; require ‘Slim/Slim.php’; \Slim\Slim::registerAutoloader(); $application = new \Slim\Slim(array(‘debug’ => false)); $application->get( ‘/dbg’, function () { $temp […]

Logging Messages in Slim Framework PRO

The Slim Framework provides us with the Log object. Writing logging messages involves with calling various functions on that object. <?php namespace Com\LifeMichael\Samples; require ‘Slim/Slim.php’; \Slim\Slim::registerAutoloader(); $application = new \Slim\Slim(); $logger = $application->log; $logger->setEnabled(true); $logger->setLevel(\Slim\Log::DEBUG); $environment = \Slim\Environment::getInstance(); $application->get( ‘/simplelogs’, function () { GLOBAL $logger; $logger->info(“i m now starting the get handling function”); echo “<data>response</data>”; […]

Creating Filters in AngularJS PRO

The AngularJS allows us to create new filters and use them in our code for filtering data we hold in arrays. The following code sample shows how to create a simple filter. The sample includes three files. The following is the HTML file that includes a SCRIPT element for using the AngularJS library, a LINK […]

Simple Navigation Menu in AngularJS PRO

The AngularJS allows us to create navigation menus in one page web applications in a very simple way. The following code sample shows that. The following is the HTML file that includes a script element that refers the AngularJS library on Google servers. <!DOCTYPE html> <html> <head> <script src=”http://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js”></script> <link rel=”stylesheet” href=”design.css” type=”text/css” /> <title>simple […]

Skip to content Update cookies preferences