1 | <?php |
||
2 | |||
3 | /** |
||
4 | * This file is part of Blitz PHP framework. |
||
5 | * |
||
6 | * (c) 2022 Dimitri Sitchet Tomkeu <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view |
||
9 | * the LICENSE file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | namespace BlitzPHP\Facades; |
||
13 | |||
14 | use BlitzPHP\Validation\ErrorBag; |
||
15 | |||
16 | /** |
||
17 | * @method static bool exists(string $view, ?string $ext = null, array $options = []) Verifie qu'un fichier de vue existe |
||
18 | * @method static \BlitzPHP\View\View first(string $view, array $data = [], array $options = []) Utilise le premier fichier de vue trouvé pour le rendu |
||
19 | * @method static string get(bool|string $compress = 'auto') Recupere et retourne le code html de la vue créée |
||
20 | * @method static \BlitzPHP\View\View layout(string $layout) Definit le layout a utiliser par les vues |
||
21 | * @method static \BlitzPHP\View\View make(string $view, array $data = [], array $options = []) Crée une instance de vue prêt à être utilisé |
||
22 | * @method static void render() Affiche la vue generee au navigateur |
||
23 | * @method static void share(array|Closure|string $key, mixed $value = null) Defini les données partagées entre plusieurs vues |
||
24 | * @method static \BlitzPHP\View\View with(array|string $key, mixed $value = null, ?string $context = null) Définit plusieurs éléments de données de vue à la fois. |
||
25 | * @method static \BlitzPHP\View\View withErrors((array | ErrorBag | string) $errors) Ajoute des erreurs à la session en tant que Flashdata. |
||
26 | * |
||
27 | * @see \BlitzPHP\View\View |
||
28 | */ |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
29 | final class View extends Facade |
||
30 | { |
||
31 | protected static function accessor(): object |
||
32 | { |
||
33 | 2 | return service('viewer'); |
|
34 | } |
||
35 | } |
||
36 |