The set_value(‘field name’) function in codeigniter allows us to retain the value of input field in form during form submission but it’s not applicable to keep checkbox checked if it was checked while the form was submitted or during postback submit refresh. Here to keep checkbox checked after form submit in Codeigniter, the set_checkbox() function plays the role.
Author » Amit Sonkhiya
Working with Date in Yii 2.0
Yii is a powerful framework where a lot of things happen automagically but learning curves are more complex as compared to any other PHP MVC framework. The first part (before ‘but’ in first line) attracts beginners to learn and experience it while the later part makes them stressed. So I tried here in article Working with Date in Yii 2.0 to simplify the concept by taking ‘Date’ as point.
Form validation rule to validate checkbox in Codeigniter
Checkbox validation in Codeigniter form is not as straight as validating other input types. As usually we need to check if a checkbox is checked or unchecked during form submission likewise if user accepted or not ‘TOS (Terms of Services)’ through checkbox. So I have provided a form validation rule to validate checkbox as ‘required’ rule can’t do the task.
Convert an image to grayscale using CSS
Here is simple CSS rule to convert an image to grayscale using CSS or making image appear as black and white. As far as CSS filters are supported in webkit browsers, this solution is cross-browser.
Forgot Password with AJAX in WordPress Login and Register
After getting many requests from visitors to integrate Forgot Password with AJAX in my previous tutorial WordPress AJAX Login and Register without a Plugin I decided to write a post about steps and code to add in that article to include Forgot Password functionality. This article is an improvement over that previous article as well as it will be sure helpful to understand how does the functionality actually work.
Prevent popup window from getting close by escape key
By default an opened modal popup window gets close whenever an user presses ESC key on keyboard. In some cases we need to prevent popup window from getting close by escape key as a part of our requirements. Here I have written two methods to disable the function of ESC key using JavaScript and jQuery each.
15 PHP Interview Questions for 1 Year Experienced (II)
Here is a good collection of 15 PHP Interview Questions and Answers which are mostly asked from 1 year experienced PHP programmer and are useful for others too. Don’t forget to check first part of PHP Interview Questions series as well.
Install Yii 2.0 Manually or without Composer
Yii is a popular, powerful and highly extensible framework for faster application development. I found many newbies to struggling for successfully install, run and develop Yii application. Those who are learning it may find useful to install Yii 2.0 manually or without composer as demonstrated in this article.
Remove or disable plugin shortcode button from visual editor
While working on a client project I needed to disable plugin shortcode button from visual editor in WordPress that were added automatically after some plugin installation. I was trying to hide WP Socializer plugin shortcode button form visual editor. Here I’m explaining how did I do that. The solution is quite simple.
55 WordPress Interview Questions and Answers for Experienced – Updated 2020
This consistently updated series of WordPress Interview Questions and Answers is here. These questions are asked generally from a WordPress developer having around 3 or 5 or more years of experience. However, freshers can also take their expertise at an advanced level with help of these WordPress Interview Questions and Answers.