This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dataProvider = $this->getPendingBookingsDataProvider(); | |
$models = $dataProvider->getModels(); | |
Yii::$app->response->format = Response::FORMAT_RAW; | |
Yii::$app->response->headers->set('Content-Type', 'text/csv'); | |
Yii::$app->response->headers->set('Content-Disposition', 'attachment; filename="data.csv"'); | |
Yii::$app->response->send(); | |
$csvHeader = ['#', 'Customer', 'Contact', 'Camp Name', 'Event Name', 'Check In', 'Total Price', 'Created At', 'Status']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var urlString = "https://example.com/page?param1=value1¶m2=value2"; | |
var urlParams = new URLSearchParams(urlString); | |
var paramValue = urlParams.get('param1'); | |
console.log(paramValue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"registration_ids": [ | |
"c7jaWC54QtOgQscrJLPQCw:APA91bHBvfBHmukpkbV0dd-HC3ML8OEN23MXM1Zc0SKQXNS2sbXSylYsoI4yguMLHRVwZL1D9hqunLk8cI0Q2qpZfcGPeg1zxq56TNEYGw-sVG-4CZoBH_IO_W2qxCQbfXVfGKmZy03D", | |
"fNMPcor0QD6SRGkYLNT6uf:APA91bH4nfL4HY0maMcq7n6v0hA88275-shzhI8QA-Epq6hBBopluuOIjJwn0Gba5OrW-s4Pv0AnW_oI3I4c68tKCW9ifiB6yjKYoMTuj9fFsP2OcDN7U5frrX89H5csTy2vee02qyxC" | |
], | |
"notification": { | |
"title": "Push Notice from notification", | |
"body": "Testing Done from Postman(notification)", | |
"image": "https://i.pravatar.cc/300" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
move .htaccess & index.php file from public folder to root folder | |
index.php changes | |
This line(Link no 34 or 35) => | |
require FCPATH . '../app/Config/Paths.php'; | |
To this => require FCPATH . 'app/Config/Paths.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_pincode_details(pincode){ | |
$.ajax({ | |
type: "GET", | |
url: base_url + controller + '/pincode_details?pincode=' + pincode, | |
success: function (resp) { | |
if(resp.success){ | |
// console.log(resp); | |
let data = resp.data; | |
let view = ``; | |
$.each(data, function(i, value){ |