Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

2056 total results found

Escaping

Developers

How to properly escape html/js code in Smarty templates and PHP files

Introduction

Developers Escaping

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

Developers Escaping

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

Developers Escaping

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

Developers

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

Sviluppatori

Come eseguire correttamente l'escape del codice html/js nei template Smarty e nei file PHP

Introduzione

Sviluppatori Escape

Vedi Escaping > Introduction

Regole di escape

Sviluppatori Escape

Vedi Escaping > Escaping rules

Guida rapida

Sviluppatori Escape

Vedi Escaping > Cheat sheet

RequestHandler

Sviluppatori

Vedi RequestHandler

Weak comparisons

Developers

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

Sviluppatori

Cosa cambia in PHP 8.3+

Sviluppatori Migrazione a PHP ≥ 8.3

Vedi What's new in PHP 8.3+

Migration to PHP ≥ 8.3

Developers

What's new in PHP 8.3+

Developers Migration to 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

Developers

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

Sviluppatori

Vedi Database best practices