Bootstrap Grid System and Breakpoints
Bootstrap Grid System
The Bootstrap Grid System uses the strategy of mobile first. Bootstrap Grid System divides the screen into 12 columns which can be joined to create wider columns according to the size of the Read more…
Configure CakePHP 3.6 in a Subfolder of WordPress
What do I actually want to do?
I want to access my WordPress site at example.com, while installing a CakePHP app on example.com/cakephp.
To achieve this, we need to install wordpress along with cakephp Read more…
Adding Multiple database server connections in PHPmyAdmin
We can use PHPmyAdmin for multiple database servers by adding them in the settings of PHPmyAdmin.
Steps to add a server in the UI of PHPmyAdmin:
Step 1: Click on Read more…
How to use CakePHP Validation class
We can use CakePHP validation functions and speed up development. These functions already follow the correct rules so we don’t need to write custom code.
$validate = new Validation();
$string = ‘Name123’;
$result = $validate->alphaNumeric ( $string );
if ($result Read more…
What support/library is there in CakePHP for sending emails and how to use it?
In CakePHP3, there are Transport and Email classes available under Cake/Network/Email namespace that are used for sending emails. After an update in the version 3.1 email functionality has Read more…
In one of the software we are developing, we faced a strange problem in Safari browser on Mac machine. A link on webpage was provided to download a file in .CSV format (server side code written in CakePHP). In Safari, downloaded file was being given the extension Read more…
Laravel Configuration and Environment Variables
Each laravel application has one “Config” directory which includes all the basic configuration files. You can configure your application by adding custom or built-in configuration variables.
Based on the environment where the application Read more…
Handling zip file download completion and cancellation event (PHP)
Problem: I am working on a project in which user needs to download a zip file from the website. I am creating zip file on the server temporarily which should be Read more…
Run artisan commands on shared hosting server (Laravel)
Laravel is a popular and excellent framework of php. It provides many functionalities out of the box like authentication, events, job queues, artisan commands and many more.
A problem on shared hosting- When Read more…
Stripe Payment Gateway Integration – The requested address was not found on this server
Stripe Payment Issue while capturing payment:
I was implementing Stripe payment in one of my cake3 project. My Stripe Charge Capture Request was Read more…
Steps to impersonate a user in Laravel (Login As another user)
Impersonate functionality allows you to impersonate other users, in order to see the application from their point of perspective, without having to log out and log in again. For instance, as an Super Admin, you Read more…
Here we will go through different Magic Methods in PHP
The PHP functions which starts with the double underscore “__” are called magic methods. These are the methods which are always defined in classes, and can not be used alone i.e. Read more…
What is the purpose of multiple .htaccess files in CakePHP?
In Cakephp, contained .htaccess files are as follows:
CakePHP root directory .htaccess redirects everything to your CakePHP app (means to webroot). We can also Read more…
Here is the process for creating and runnning multiple cron Jobs in Laravel
Cron: It is a scheduler which runs after a specific interval or at specific time. It should be used when developer wants to run a piece of code at a particular Read more…
PHP script scheduling without cron job
Sometimes a website built in php needs to schedule a script on daily or hourly basis – for example, Reminder Emails, Newsletter emails or Database backups to be taken automatically. Normally, these types of backend tasks can be handled with the Read more…
The list of some new and useful features in Laravel 5 and higher versions
1. Migrate:fresh Command: Refresh command runs all the down methods from database migrations. There may be some cases where down method for some database migrations are not given which Read more…
How to bulk upload files to AWS S3 Bucket (using Laravel)
Amazon Simple Storage Service (Amazon S3) is used to store and retrieve any amount of data, at any time, from anywhere on the web. While storing data to AWS S3 bucket one way is to Read more…
How to use mpdf plugin in cakePHP to convert HTML documents to pdf?
mPDF is a PHP library which is used to generate PDF files from HTML Documents. It converts utf-8 encoded documents and also supports almost all languages including Arabic and Hebrew. It includes Read more…
Understanding the purpose and usage of Inflector in Cakephp
The Inflector class in cakephp is used to modify single/multi word strings into different formats using its build-in methods. We don’t need to use core php methods such as str_replace if you want to Read more…
What is Laravel Database Migration?
Laravel Migration provides a mechanism to propagate database changes from one machine to another (like development to production). It is a kind of version control of the database.
Create an application after installing laravel by using composer (like in the example Read more…