git --version
jQuery(document).ready(function ($) { | |
$("#printme").click(function () { | |
var bodyContent = ''; | |
$('body').find('.printable').each(function (index, object) { | |
bodyContent += $(object).html(); | |
}); | |
var headStyles = ''; | |
$('head').find('link[rel="stylesheet"]').each(function (index, object) { | |
headStyles += '<link href="' + $(object).attr('href') + '" rel="stylesheet"/>'; |
server { | |
listen 80; | |
listen [::]:80; | |
#listen 443 ssl http2; | |
server_name localhost .localhost; | |
charset utf-8; | |
root "/srv/www/nginx/"; | |
index index.php index.html index.htm; | |
gzip off; |
- Assuming that you have already installed php and apache
- Install xDebug php extension
# Arch Linux , Manjaro
sudo pacman -Sy xdebug
# Ubuntu 16.04,18.04
Translations: Korean (by Yongwoo Lee)
Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.
I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> |
<?php | |
function renderView($filePath, $variables = array(), $print = true) | |
{ | |
$output = NULL; | |
if(file_exists($filePath)){ | |
// Start output buffering | |
ob_start(); |
DDL is short name of Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.
DCL is short name of Data Control Language which includes commands such as GRANT, and mostly concerned with rights, permissions and other controls of the database system.
DML is short name of Data Manipulation Language which deals with data manipulation, and includes most common SQL statements such INSERT, UPDATE, DELETE etc, and it is used to store, modify, delete and update data in database.
DQL is short name of Data Query Language which used for performing queries on the data within schema objects. The purpose of the DQL Command is to get some schema relation based on the query passed to it. SELECT statement is used to retrieve data from the database.
group: SUPPLIER PARTS - S, SP, P | |
description: This is a very simple database that is used by ChrisDate & HughDarwen throughout their books (e.g., AnIntroductionToDatabaseSystems & TheThirdManifesto) for examples. | |
P = { | |
pn, pname, color | |
1, 'PN1', 'Red' | |
2, 'PN2', 'Blue' | |
3, 'PN3', 'Yellow' | |
4, 'PN4', 'Green' |