Category: PHP Frameworks
Compare Passwords in HTML5 form validation using Jquery
In one of our projects, requirement was to compare two password values using HTML5 form validation (display the message in the same format as regular HTML5 messages are displayed). Let us assume that we have a HTML5 form for change
JavaScript and Jquery Best Practices
1. Place Scripts at the Bottom of the Page: If we include script at the top, sometime page elements are not loaded completely and script starts working. So we need to include scripts after loading all the elements. Also if scripts
Postgres | JSONB data type field in PostgreSQL(9.4) and using it in CakePHP
JSONB (JSON Blob) datatype in Postgres is used to save JSON data. We can search on JSONB type of column after creating an index on it. For example: Usage in PostgreSQL: 1. Create table and index CREATE TABLE tests (
Handling twitter and google plus share button in wordpress
Handling content and image sharing with twitter and google plus share buttons in wordpress To achieve dynamic content(including image) sharing from a website with share buttons (or links) for share and likes on social sites like twitter and google plus,
Moodle | Writing HTML content into pdf file and sending the pdf file as attachment
To create a new customized plugin with email functionality and sending a pdf file as attachment requires some simple lines of code with TCPDF library file inside the library directory of moodle. And for performing file operations, filelib.php reference is
Using Google reCaptcha to authenticate user login on login form
Google reCaptcha is a free service API provided by Google to protect your site from unauthorized access, abuses and spam. The API uses advanced risk analysis technique to distinguish among a human being and a bot. The reCaptcha API comes
Importance and Need of child theme in WordPress
In wordpress, a child theme is a theme that inherits the functionality and styling of its parent theme. Child themes are the recommended way of modifying an existing theme (like inheritance in object oriented programming). If we have any theme
Heroku | Fatal error due to PHP 7 and old version of CakePHP
Fatal Error on website whenever we were pushing any code change to our website hosted on heroku. We were suddenly facing a fatal error (error 500) on our website. After making debugger on, it displayed the following error : After
Cakephp | How to send email using google api (gmail) in cakephp 2.x ?
How to send email using google api (gmail) in cakephp 2.x? Answer: When you send email using google api, you’ll need: 1. Cakephp 2.x 2. A Google account with Gmail enabled. 3. PHPMailer Library. Download PHPMailer library from below link: