DEVLIM

Write what i have learn

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Sample Page

Author Archives: admin

Tip: undefined method ‘application’ for Sinatra:Module

Posted on December 12, 2011 by admin
Reply

If your sinatra app get undefined method ‘application’ for Sinatra:Module and your config.ru file use run Sinatra.application, try change it to run Sinatra::Application, it may solve this problem.

Posted in Sinatra | Leave a reply

Pure css3 loader

Posted on October 30, 2011 by admin
Reply

Posted in Uncategorized | Leave a reply

Check PHP variable data type with build-in function

Posted on September 13, 2011 by admin
Reply

PHP offer a very useful build-in function gettype() where you can use to check the php variable datatype. Example:

<?php
$int = 1;
echo gettype($int); //integer

$array = array(1,2,3);
echo gettype($array); //array

$string = "DEV";
echo gettype($string); //string
?>
Posted in php | Leave a reply
Proudly powered by WordPress