Advanced Search
Search Results
2056 total results found
Escaping
How to properly escape html/js code in Smarty templates and PHP files
Introduction
Starting with vtenext version 26.01, all variables outputted by Smarty templates (for example {$VARIABLE} ) by default have all applicable characters are converted to html &...; notation. For instance, the string "nice & 'smooth' à > è" is converted to "nice &...
Escaping rules
1. Avoid html code in php Avoid generating html code directly in php, or outputting it directly. If possible use Smarty templates. Exceptions can be made for very short snippets, see paragraph 3 for how to handle them. Examples Good $name = "John & friends...
Cheat sheet
Quick reference if you just need to know how to escape stuff! Do's and Don'ts Use only query_result_no_html and fetchByAssoc(..., -1, false) or fetchByAssocNoHtml, we don't want that pesky to_html function to be called Do not generate html strings in ph...
RequestHandler
What is RequestHandler? RH (alias for RequestHandler) provides secure, centralized access to HTTP request data. It automatically sanitizes input using vtlib_purify() and applies type-safe filters from F:: enum. This replaces direct access to superglobals li...
Escape
Come eseguire correttamente l'escape del codice html/js nei template Smarty e nei file PHP
Introduzione
Vedi Escaping > Introduction
Regole di escape
Vedi Escaping > Escaping rules
Guida rapida
Vedi Escaping > Cheat sheet
RequestHandler
Vedi RequestHandler
Weak comparisons
Backward Incompatible Changes View https://www.php.net/manual/en/migration80.incompatible.php Key principles Follow these fundamental rules when writing compatible code: Analyze variable types: Always understand what types and values a variable can hold. ...
Release Note vtenext 26.*
Per installare vtenext alla versione 26.* è necessario utilizzare php >= 8.3. Vedi i requisiti necessari nell'apposita sezione. L'adeguamento a php 8 ha comportato una revisione di gran parte del codice quindi rimandiamo gli sviluppatori a prendere visione del...
Migrazione a PHP ≥ 8.3
Cosa cambia in PHP 8.3+
Vedi What's new in PHP 8.3+
Migration to PHP ≥ 8.3
What's new in PHP 8.3+
Minimum PHP version updated The application now requires PHP 8.3 as the minimum version. Database updates Starting from version 26.01 of vtenext, some important database changes took place, such as: Charset and CollationDatabase is now using by defau...
Database best practices
Best practices (all versions) Avoid methods that do automatic html conversion, like query_result and fetchByAssoc(...) Never concatenate variables (especially coming from request) into the sql string Always use the no_html versions (query_result_no_html or ...
Migliori pratiche per database
Vedi Database best practices