phpFashion

Základní informace o zdroji

Ikona
Domovská stránka https://phpfashion.com/
RSS export http://phpfashion.com/feed/rss

Systémové informace o zdroji

ID 290
Jmenné ID phpfashion
Články ručně přidává správce systému NE
Články jsou schvalovány správcem NE
Titulek zdroje stahován z RSS exportu ANO
Kontrola aktuálnosti proběhla 22. ledna 2022 13:05
Návratový kód HTTP 200
RSS export naposledy zpracován 22. ledna 2022 13:05
Kontrola aktuálnosti naplánována na 22. ledna 2022 13:20

Dependent selectboxes elegantly in Nette and pure JS

How to create chained select boxes, where after selecting a value in one the options are dynamically updated in the other? This is an easy task in Nette and pure JavaScript. We will show a solution that is clean, reusable end secure. Data model As an…

phpFashion | Včera 1:50 | # Nové 

New plugin NEON Nette Support

IDE plugins bring comfort to your development and simplify your work. I enjoy developing plugins for the IntelliJ platform and would like to deliver the best products possible. Today I'm going to introduce a new plugin NEON Nette Support that is…

phpFashion | 14. 1. 2022 1:50 | #

Tracy 2.9 and evolution of the iconic screen

Tracy's distinctive red screen has barely changed in the 15 years of its existence, and it's an exaggeration to say that the evolution has been in search of the ideal shade of red. In fact, there have been plenty of minor visual improvements, but not…

phpFashion | 24. 12. 2021 2:20 | #

Zapisovat nullable types s otazníkem nebo bez?

Vždycky mi vadila jakákoliv nadbytečnost nebo duplicita v kódu. Už jsem o tom psal před mnoha lety. Při pohledu na tento kód prostě trpím: interface ContainerAwareInterface { /** * Sets the container. */ public function setContainer(ContainerInterface…

phpFashion | 13. 12. 2021 19:50 | #

Readonly proměnné v PHP 8.1 vás zaskočí

PHP 8.1 přichází se zajímavou novinkou: readonly členské proměnné: Začneme rovnou příkladem použití: class Test { public readonly string $prop; public function setProp(string $prop): void { $this->prop = $prop; // legal initialization } } $test = new…

phpFashion | 5. 10. 2021 18:10 | #

How to pass app directory paths to services

In this very short article, I will show you 2 simple ways how to pass directory constants to services, it's very elementary thing that most of you know, but it never hurts to see it again. Let's say we have CronTaskExecutor for executing cron tasks from…

phpFashion | 4. 10. 2021 17:40 | #

Nette Http 3.1: much smarter sessions

Nette has Nette has always taken a cautious approach to sessions. It only started them automatically when users needed them. Which specifically means: when they write to it when they read from it and there is a session ID cookie Because if the cookie…

phpFashion | 24. 9. 2021 12:00 | #

PhpGenerator 3.6: news from PHP 8.1 and more

This is locked content for Nette partners only

phpFashion | 24. 9. 2021 12:00 | #

Jak probíhá shutdown v PHP a volání destruktorů?

Ukončení požadavku v PHP se skládá z těchto kroků prováděných v uvedeném pořadí: Volání všech funkcí registrovaných pomocí register_shutdown_function() Volání všech metod __destruct() Vyprázdnění všech output bufferů Ukončení všech rozšíření PHP (např…

phpFashion | 5. 9. 2021 22:00 | #

How to write error handler in PHP?

If you are writing your own error handler in PHP, it is absolutely necessary to follow a few rules. Otherwise, it may break the behavior of other libraries and applications that do not expect betrayal in the error handler. Parameters The signature of…

phpFashion | 20. 4. 2021 17:35 | #

Jak napsat error handler v PHP?

Pokud píšete vlastní error handler pro PHP, je bezpodmínečně nutné dodržet několik pravidel. Jinak může nabourat chování dalších knihoven a aplikací, které nečekají v error handleru zradu. Parametry Signatura handleru vypadá takto: function…

phpFashion | 20. 4. 2021 17:00 | #

Nette Tester 2.4.0 is out

A new smaller release is out. And since there are no posts on the blog about the patches from 2.3.1 to 2.3.5, I will address them in this post too. Let's move from the past to the present. Patch releases Version 2.3.1 is purely maintenance release, just…

phpFashion | 5. 3. 2021 18:15 | #

News in Nette Schema 1.2

Nette Schema is the youngest addition to the Nette family. The library was originally created for the needs of Nette DI, ie to validate and normalize the input configuration files and to inform about possible errors. Nette Schema was an attempt to find…

phpFashion | 5. 3. 2021 18:15 | #

News in PhpGenerator 3.5

PhpGenerator has learned all the language features of PHP 8. Let's see how you can start using them right away. Constructor Property Promotion A very nice new feature of PHP 8 is the constructor property promotion, a syntactic sugar that saves writing…

phpFashion | 25. 2. 2021 3:30 | #

News in Nette Security 3.1

You'll be amazed at the horizons of this new version, and how easy it is to build web applications that don't need a session. Clarity Before we look at the main news, we must say that Nette is gradually leaving the prefix I in the interface names, so it…

phpFashion | 25. 2. 2021 3:30 | #

News in Nette Forms 3.1

Protection against CSRF using cookies The vulnerability of a CSRF is based on the trick that the form is spoofed by an attacker and sent from his site, ie from another domain, against which Nette has always had protection, which is turned on by the…

phpFashion | 25. 2. 2021 3:30 | #

News in Nette Http 3.1

News in Nette Http version 3.1 mainly concerns the current development of browsers in relation to cookies. Current browsers finally work without bugs with the SameSite flag, so Nette automatically sends it. So now Nette sends all cookies (including…

phpFashion | 18. 2. 2021 4:20 | #

News in Nette Database 3.1

With an elegant way of working with a transaction comes a new method transaction(). You pass in a callback that runs in the transaction. If any exception is thrown, the transaction is rolled back. If everything goes well, the transaction will be…

phpFashion | 18. 2. 2021 4:20 | #

News in Nette Utils 3.2

One of the main new features of Nette Utils 3.2 is the new static class Nette\Utils\Floats with useful functions for comparing decimal numbers. The class solves a problem that surprised many programmers when they found that equality does not apply for…

phpFashion | 18. 2. 2021 4:20 | #

Services don't need names

I love Nette Framework's dependency injection solution. I really do. This post is here to share this passion, explaining why I think it is the best DI solution in today's PHP ecosystem. (This post has originally been published on the author's blog.)…

phpFashion | 18. 2. 2021 4:20 | #

Latte 2.10: A joy to debug

It has become a tradition that once every quarter a new version of Latte with a ton of hot new features is releases. This time, the most important features are related to debugging templates. Come take a look at a quick overview. Tracy panel Latte has a…

phpFashion | 18. 2. 2021 4:20 | #

PHP 8.0: New Functions, Classes and JIT (4/4)

PHP version 8.0 has been released. It's full of new features like no other version before. Their introduction deserved four separate articles. In the last part we'll take a look at new functions and classes and introduce the Just in Time Compiler. New…

phpFashion | 9. 12. 2020 23:30 | #

PHP 8.0: Attributes (3/4)

PHP version 8.0 is being released right now. It's full of new stuff like no other version before. Their introduction deserved four separate articles. In the third part we'll take a look at attributes. Attributes provide a whole new way to write…

phpFashion | 30. 11. 2020 18:55 | #

PHP 8.0: News in Data Types (2/4)

PHP version 8.0 has just been released. It's full of new features, like no version before. Their introduction deserves four separate articles. In the second part, we will take a look at data types. Let's go back in history. The introduction of scalar…

phpFashion | 30. 11. 2020 18:55 | #

PHP 8.0: What's New? (1/4)

PHP version 8.0 is being released right now. It's full of new stuff like no other version before. Their introduction deserved four separate articles. In the first one we'll take a look at what it brings at the language level. Before we delve into PHP,…

phpFashion | 30. 11. 2020 18:55 | #

Latte 2.9: last but not for least

The new version brings features that will change the way you work with templates. Coding templates will be much more fun than you ever thought. Three major versions of the Latte have already been released this year: Latte 2.6 with optional chaining and…

phpFashion | 24. 11. 2020 0:45 | #

Objevena první zranitelnost v Nette, aktualizujte!

Hurá, Nette už má první záznam v CVE! To znamená, že v něm byla objevena první vážná zranitelnost. Co se vlastně stalo? Na konci prázdnin mi napsal vývojář Cyku Hong z malebného Taiwanu, že našel v Nette zranitelnost a v následujícím e-mailu vysvětlil…

phpFashion | 2. 10. 2020 22:50 | #

CVE-2020–15227: Potential Remote Code Execution Vulnerability

For the first time in Nette's 13-year history, a security flaw was discovered in it. It was found by a developer from picturesque Taiwan. This is a serious vulnerability that can, under certain circumstances, lead to remote code execution. The…

phpFashion | 2. 10. 2020 17:00 | #

Co jsou SameSite cookie a proč je potřebujeme?

SameSite cookies poskytují mechanismus, jak rozpoznat, co vedlo k načtení stránky. Jestli to bylo prokliknutí odkazu na jiném webu, odeslání formuláře, načtení uvnitř iframe, pomocí JavaScriptu atd. Rozlišit, jak byla stránka načtena, je totiž naprosto…

phpFashion | 18. 9. 2020 14:00 | #

Economy, containers and other hot news in Nette Forms

An overview of the most important news in the nette/forms 3.0.x package. Economic checkbox lists The CheckboxList sent by the GET method is not transmitted economically, it wastes characters and creates a long line in the URL…

phpFashion | 17. 6. 2020 21:30 | #