getHours() 12-hour format

July 29, 2016 admin 0

This Function will give the perfect time format in 1-12 hours   Javascript Function: function getClockTime(id){ var now = new Date(); var hour = now.getHours(); […]

Facebook Dynamic share button url(data-href)

April 30, 2015 admin 0

For JavaScript: <script language=”javascript”> function fbshareCurrentPage() {“”+escape(window.location.href)+”&t=”+document.title, ”, ‘menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600’);return false; } </script>   To call the facebook share button: <a href=”javascript:fbshareCurrentPage()” target=”_blank” alt=”Share on Facebook”>Facebook</a>   […]

Layout is rendered twice

April 30, 2015 admin 0

QUICK TIPS! In Phalcon MVC to avoid layout render twice make sure your naming is different, when common folder with all layouts is sharable, names […]