PHP Frameworks

Bootstrap Grid System and Breakpoints

Author - Mayank Srivastava
|
0 Comments
|

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

Author - Manoj Thakur
|
0 Comments
|

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

Author - Ashish Gautam
|
0 Comments
|

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

Author - Kailash Kumar
|
0 Comments
|

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.

Example:
In Controller:

$validate = new Validation();
$string = ‘Name123’;
$result = $validate->alphaNumeric ( $string );
if ($result Read more…

Sending Emails in CakePHP with Example

Author - Sahil Bhalla
|
0 Comments
|

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…

Safari downloading files in .csv.html format | Workaround

Author - Webner

Problem

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

Author - Pawandeep Kaur
|
0 Comments
|

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.

Environment Configuration:
Based on the environment where the application Read more…

Handling zip file download completion and cancellation event in PHP

Author - Harpal Singh
|
0 Comments
|

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)

Author - Harpal Singh
|
0 Comments
|

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 – The requested address was not found on this server

Author - Varun Chopra
|
0 Comments
|

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…

How to impersonate a user in Laravel?

Author - Dalbir Kaur
|
0 Comments
|

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…

Introduction to Magic Methods in PHP

Author - Webner
|
0 Comments
|

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…

Purpose of multiple .htaccess files in CakePHP

Author - Maniraj Singh
|
0 Comments
|

What is the purpose of multiple .htaccess files in CakePHP?

In Cakephp, contained .htaccess files are as follows:

newcakeproject/.htaccess
/app/.htaccess
/app/webroot/.htaccess

1. newcakeproject/.htaccess

CakePHP root directory .htaccess redirects everything to your CakePHP app (means to webroot). We can also Read more…

How to create and run multiple cron Jobs in Laravel?

Author - Harpal Singh
|
0 Comments
|

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 jobs

Author - Ishpreet Kaur

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…

New features in Laravel 5 and higher versions

Author - Umang Pasricha
|
0 Comments
|

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…

Bulk upload files to AWS S3 bucket

Author - Komal Dhiman
|
0 Comments
|

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…

Convert HTML to pdf using mpdf plugin in cakePHP

Author - Sahil Bhalla
|
0 Comments
|

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 Inflector in Cakephp

Author - Parminder Kaur
|
0 Comments
|

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…

Laravel Database Migration

Author - Umang Pasricha
|
0 Comments
|

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…

1 2 3 4 5 6 7 8 9 10 11 Next page ›