Step 1: Download Fresh Latest Version of Codeigniter Step 2: Add Controller Method
Expand +Category: Web Development
How to Create Pagination with Node.js, MongoDB, Express and EJS Step by Step
. ├── routes | └── index.js ├── models | └── add_password.js ├── views ├── add-new-password.ejs | └── view-all-password.ejs Open models/add_password.js file and copy and paste the following code to create schema and mongoose connection: const mongoose = require(‘mongoose’); mongoose.connect(‘mongodb://localhost:27017/pms’, {useNewUrlParser: true, useCreateIndex:…
Expand +How to Convert an Image to PDF in CodeIgniter using FPDF Library
Step 1: Download Fresh Codeigniter 3 Step 2: Download fpdf library Step 3: Create mypdf.php file in “application/libraries” Folder
Expand +Express and Node JS Interview Questions & Answers
1. What is node.js? Node.js is an open-source, cross-platform JavaScript runtime environment built on Chrome’s V8 JavaScript engine. It allows developers to execute JavaScript code outside of a web browser, making it possible to run server-side applications using JavaScript. Node.js…
Expand +What is Callback Hell?
addition(2,function(addRes,err){ if(!err){ Subtract(addRes,function(subRes,err){ if(!err){ multiplication(subRes,function(mulRes,err){ console.log(mulRes); }); } }); } }); function addition(val,callback){ callback(val+5,false); } function Subtract(val,callback){ callback(val-3,false); } function multiplication(val,callback){ callback(val*5,false); } In the above code, there is three operation addition, Subtract and multiplication. Which is using a callback…
Expand +Basic Difference Between Callback and Promise
Callback: A Callback is a function that we call inside another function. A callback may or may not performed asynchronously. Normally callback runs after the parent function completes its operation. function calculate(x) { return x+2; } function display(y) { //execute…
Expand +Dynamically Add Watermark on the Uploaded Image Using PHP
Step 1.Make an index file (index.php) and Below Code Select Image File to Upload: Upload File: How to Generate PDF with Watermark in PHP using Dompdf Conclusion This is how to add WaterMark to an image using PHP. You can…
Expand +Mini Projects for Freshers using Node js, Express Js and MongoDB
Stateless Authentication With JSON Web Tokens, Node-local storage, and Express
Authentication using state of user sessions and cookie session ids has been an approach that has been working for centuries. But there has been a move to develop apps with the concept of statelessness in mind with the increase of service-oriented…
Expand +How to Generate PDF with Watermark in PHP using Dompdf
Dynamic PDF age is valuable when you need to enable the client to download the content or HTML content in a file on the web application. For this situation, the HTML content should be changed over to the PDF record…
Expand +