Category: PHP Frameworks
WordPress | Dynamically generating ADF XML format of the form submission
ADF XML FORMAT ADF XML format stands for Auto-lead Data Format XML that is an automotive retailing industry standard data delivery format for import and export of automotive customer leads. This format is used as a way to format the
PHP | core.php and some important settings
In CakePHP application, core.php is configuration file and is located at app/Config/core.php. This file contains various variable definitions and constant definitions that alter the behavior of the application. The description of some important variables and their effect on the application
Moodle | This page should automatically redirect
In my plugin code I was trying to redirect from one page to another page using redirect as follows: redirect(“success.php?cd=”.$id); Redirecting to the other page was working but during redirection an intermediate page was being displayed like this: On click
HTML Media Capture
How to access Camera and upload the image/video to server? We can achieve above requirements easily by using HTML Media Capture : <form action=”upload.php” method=”post” enctype=”multipart/form-data”> Capture Image: <input type=”file” name=”uploadedfile” accept=”image/*” capture=”camera”> <input type=”submit” value=”Upload”> </form> To capture Audio
Moodle | How to create a scheduled task in moodle
In moodle we can create scheduled tasks which will run after a defined interval. We also have cron jobs in moodle but they usually run after every minute so if we need to run a task after a particular time
CakePHP 3.x or 2.x | Some important configuration settings
Some important settings that can help you while working with CakePHP 3 or 2. 1. How to set Homepage for your website in CakePHP 3? Go to the root directory of your project. You will see config folder there. Inside
Salesforce | Get list of Salesforce sobjects and fields in PHP
Problem: How to get list of all the Salesforce sobjects in php. Also get fields of each sobject. Solution: First we need to install Salesforce php toolkit for this. Once you have it then this is the sample code: require_once(SFDCPHPtoolkit
phpMyAdmin | Different methods to View Table Constraints
How to view List of constraints of tables of Database in phpMyAdmin There are various ways by which we can view the list of constraints applied to tables of given database in PhpMyadmin. Let’s see few methods here: Suppose we
Explanation of Column3 in Moodle/Totara
Column 3 layout in Moodle is basically dividing the screen into 3 parts . user setting options Layout (pre ) content layout (region) editing layout (post) user setting options Layout (pre): In column3 layout pre region is the first column.