Creating a new PHPExcel Object.
$this->PHPExcel = new PHPExcel();
Creating a new sheet:
//Self is used to reference the current class name within a class, where as $this refers to the current object instance. | |
//500 Internal Server Error: | |
-> Most probably server side programming error | |
-> A PHP Timeout: If your script connects to external resources and those resources timeout, an HTTP 500 error can occur. Timeout rules, or better error handling in your script, should help if this is the cause of the 500 error. | |
// | |
public function finalCompareData() | |
{ | |
$_SESSION['clientMakerMapData']; | |
$_SESSION['clientSellerMapData']; |
//Apply custom CSS using media queries: | |
/*Extra Devices or Mobile*/ | |
@media (max-width: 767px) { | |
/* CSS goes here */ | |
} | |
/*Small Devices or Tab*/ | |
@media (min-width: 768px) and (max-width: 992px){ | |
/* CSS goes here */ |
//Currnet HTML element ke refer korar jonno this keyword/selector use hoy. | |
//Similarities | |
-> Empty Object: | |
var objectA = {} | |
var objectB = new Object() | |
->Empty Array: | |
var arrayA = [] //Predifined length | |
var arrayB = new Array(24) //Defined length, we can save 24 items in the array. |
### What is PHPUnit? | |
-> PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks. | |
-> xUnit is the collective name for several unit testing frameworks that derive their structure and functionality. | |
### What is PHP Archive (PHAR)? | |
-> Phar archives are similar in concept to Java JAR archives. A Phar archive is used to distribute a complete PHP application or library in a single file. A Phar archive application is used exactly like any other PHP application: | |
i.e. | |
coollibrary.phar | |
Using a Phar archive library is identical to using any other PHP library: |
//v.01 | |
Form controll Styling: | |
.inputclass { | |
border: 1px solid #c8d3df; | |
border-radius: 2px; | |
padding: 7px !important; | |
width: calc(100% - 10px); | |
} | |
input { | |
outline: none; |
->Setting processData to false lets you prevent jQuery from automatically transforming the data into a query string. | |
And Setting the contentType to false is imperative. | |
Refference link: https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects | |
//01// File Upload using FormData Object in Javascript | |
Syntax: | |
var formData = new FormData(); // Currently empty | |
formData.append(name, value); // custom text field where key/value pair | |
formData.append(name, value, filename); // Custom file uploading |
//01// Description: | |
JSON: JavaScript Object Notation. | |
JSON is a syntax for storing and exchanging data. | |
JSON is text, written with JavaScript object notation. | |
N.B: JSON format is text only and text can be read and used as a data format by any programming language. | |
->Exchanging Data: | |
When exchanging data between a browser and a server, the data can only be text. | |
->Sending Data: |
//01// Difference between composer update and composer install | |
->composer update | |
->Composer update will update your depencencies as they are specified in composer.json | |
For example, if you require this package as a dependency: | |
"mockery/mockery": "0.9.*", | |
and you have actually installed the 0.9.1 version of the package, running composer update will cause an upgrade of this package (for example to 0.9.2, if it's already been released) |