Category: PHP Frameworks
How to use CakePHP Validation class
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 =
Sending Emails in CakePHP with Example
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
Laravel Configuration and Environment Variables
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
Handling zip file download completion and cancellation event in PHP
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
Run artisan commands on shared hosting server (Laravel)
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-
Stripe – The requested address was not found on this server
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: 1) Check out
How to impersonate a user in Laravel?
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
Introduction to Magic Methods in PHP
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
How to create and run multiple cron Jobs in Laravel?
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