How to automatically register classes into DIC
Many of you didn't know the fact that Nette 3 has a built-in extension for automatic registration of your classes to dependency injection container. Such extension can save you time writing hundreds of lines of neon configurations where you register classes with similar names (<Something>Factory, …
Nette fully supports PHP 7.4. What does it mean?
Just a few days ago PHP 7.4 was born. This version is another important milestone in language development. The great news is that the Nette Framework is thoroughly prepared and fully tested with the new version. And beware, this applies not only to the current version 3.0 but also to the previous…
How to properly update Nette
“Nette is perfectly backward compatible. Switching from Nette 0.9 to 2.4 took me one afternoon on a relatively large application. That was a great result!” said one satisfied user. Here are some tips on how to update your project to the latest version of Nette.
How to set up CSP and script-src correctly
Content Security Policy (CSP) is an additional security feature that tells the browser what other resources a page can load and how it can be displayed. This protects against the insertion of malicious code and attacks such as XSS. It is sent in the form of a header made up of a series of…
HTTP requests and responses – Part 3
In the first and second sections of this mini-series I describe the possibilities of controlling HTTP protocol from the presenter in Nette application. In this episode, I focus on tools for working with HTTP caches in Nette.
HTTP requests and responses – Part 2
In the first part I describe presenter methods, by which we can control HTTP responses of the application. In this section, I will address the interface Nette\Application\IResponse, with which HTTP responses can be formed very accurately.
HTTP requests and responses – Part 1
Nette offers two layers of abstraction to work with HTTP. The first, low-level, is provided by namespace classes Nette\Http. They offer a nice API to handle HTTP headers, pull URLs, incoming parameters and files, or set a response numeric code. We are almost shielded from this layer in the Nette…
Nette Magazine 10/2017
As you know, Nette Framework has excellent support for easy AJAX websites. So it's a shame that lots of sites built on Nette do not use this opportunity to speed up the web. The library of Vojta Dobeše nette.ajax.js which is currently a little bit old. Another help recently came up the Nittro,…
Nette Magazine 9/2017
For all who don't know about a new type of versioning of Nette Framework 2.4, there is no planned 2.4.x version. All packages have their maintenance version, but Framework doesn’t have. There is build from (2017–08–29) with release notes, that is fully compatible with incoming PHP version 7.2
Nette Tester 2.0.0 is out
Nette Tester 2 is finally out. I'll describe changes and new features in detail.
Nette Magazine #4
After a summer break, here comes a whole heap of news and info about what has been going on and what is in the picture. The hottest piece of news is the new version of Nette Framework 2.4. A complex overview of changes made to the framework, including all novelties related to versioning, can be…
Nette Magazine #2
At the last PoSobota meetup, David Grudl introduced the news waiting for us in version 2.4 which should become the LTS in Nette version 2. There are big plans with Nette version 3, especially regarding PHP 7, therefore the version 2.4 should most likely be the version for all Nette 2.x projects to…