Skip to content

Instantly share code, notes, and snippets.

Avatar

yablko yablko

View GitHub Profile
View webdeveloper-php-ulohy-nove.md

1) Tato uloha je predpriprava na nasledovnu.

Sprav jednoduchy index.php subor. Don vyrob jeden HTML formular s jednym inputom.
Don zadas cislo. Po odoslani formularu vyrob OL zoznam s tolkymi LI elementami, ake cislo si zadal. Vypise sa nieco nasledovne:

1. zaznam 1, edit, delete
2. zaznam 2, edit, delete
View webdeveloper-php-ulohy.md

0) Tento kod zisti hodnotu z $_POST['cena']. Ci nejaku mam, ak ano, spravi trim, inak sa ulozi false.

$cena = isset($_POST['cena']) ? trim($_POST['cena']) : false;

Prerob to na funkciu, ktoru mozem zavolat, ze:

$cena = input('cena');
View php.ini
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
@yablko
yablko / sublime_settings.md
Last active Jun 10, 2020
Sublime Text 3 nastavenia pre Webrebel kurz
View sublime_settings.md

Nové Sublime Text 3 nastavenia

Package Control.sublime-settings
CTRL + SHIFT + P, "Package Control Settings - User"
(CMD + SHIFT + P na Macu)

{
	"auto_upgrade_last_run": null,
	"bootstrapped": true,
	"in_process_packages":
You can’t perform that action at this time.