Category: PHP Frameworks
Laravel’s powerful validation rules
Laravel’s powerful validation rules When we develop any application in Laravel, various validation rules are available which are used to validate data from all incoming HTTP requests. Some Examples: 1. First let’s create a controller named RegistrationController by executing the
Reflection Api in Php
Reflection Api in Php What is Reflection and why is it useful? Reflection is generally defined as a program’s ability to examine itself and modify its logic/methods at execution time. In simple terms, reflection is asking an object to tell
Integrate Razorpay in CakePHP application
Integrate Razorpay in CakePHP application Step 1: Create Razor Pay Account First of all you need a test account for Razorpay integration. Click the below link https://dashboard.razorpay.com/#/access/signup and set up a test account there: Step 2: Get your API Keys:
PHP_CodeSniffer Introduction
What Is PHP_CodeSniffer? PHP_CodeSniffer is an essential development tool that helps developers to work in a standardise format so as to make code clean and consistent. It ensures that same coding style is being followed. It allows a set of
Introducing WordPress versions 4.9.4 and 4.9.5
WordPress Version 4.9.5 WordPress 4.9.5 is released on 3rd April 2018. This version is released to fix the security issues. There were three major security issues which are solved by the WordPress community in this version: 1. Don’t treat localhost as
Migrate codeigniter (2.0.3) from php 5.3 to php 5.6 or higher version – conflicts
I am working on a client project which is using Codeigniter running on version 2.0.3 and PHP 5.3. I got a requirement from client to upgrade the PHP version from 5.3 to 5.6 or higher. While I tried to upgrade
In Laravel how to redirect to 404 page on accessing post route
In Laravel, when a user directly accesses a post route then an exception page is shown. How to show a 404 page instead? To fix this issue : Firstly, you need to create an error page in view folder of
CakePhp 3.x | Send Email using SMTP
To send an email in cakephp use Email class of Cakephp 3. In app.php under config folder, add a new entry in the table EmailTransport. For example here ‘mail’. Specify host, port, username and password in it: ‘EmailTransport’ => [
PHP | Show star rating (empty or filled stars)
Sometimes situation arises when we have to show the ratings on our site like user rating of all the products available on our site. Then we have to first get the rating from where we have it like sometimes it