《Slides Dev Web》02. Introduction aux frameworks PHP
Inversion de contrôle (IoC4) • Model View Controller – M : Accès aux données, logique métier – V : Templates des pages à générer – C : Orchestration, transfert des infos • Front Controller – Traitement et .. include "templates/entete.html"; if ("equipe" === $_GET["page"]) { // SELECT FROM u WHERE id=$_GET["id"] // ... include "templates/equipe.html"; } else { // ... include "templates/accueil.html"; html"; } 13 Quel est le problème avec cette solution? (Source de l’image19) Sécurité des templates • Principle of Least Privilege ( polp20 ) • Intégration faite par un graphiste, société externe Dans0 码力 | 24 页 | 1.03 MB | 1 年前3
The Laravel Handbook
that end with .blade.php and are Blade templates. Blade is a server-side templating language. In its basic form it’s HTML. As you can see, those templates I used above don’t have anything other than than HTML. 18 But you can do lots of interesting stuff in Blade templates: insert data, add conditionals, do loops, display something if the user is authenticated or not, or show different information (run both in 2 different terminal windows). Now we’re ready to use Tailwind CSS in our Blade templates! Add this line to the page head :0 码力 | 111 页 | 14.25 MB | 1 年前3
Learning LaravelGates 14 Policies 15 Writing Policies 15 Authorizing Actions with Policies 15 Chapter 5: Blade Templates 17 Introduction 17 Examples 17 Views: Introduction 17 Control Structures 18 Conditionals 18 com/ 16 Chapter 5: Blade Templates Introduction Laravel supports Blade templating engine out of the box. The Blade templating engine allows us to create master templates and child templating loading loading content from master templates, we can have variables, loops and conditional statements inside the blade file. Examples Views: Introduction Views, in an MVC pattern, contain the logic on how to present0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
Configuration ii. Session Usage iii. Flash Data iv. Database Sessions v. Session Drivers xx. Templates i. Blade Templating ii. Other Blade Control Structures iii. Extending Blade xxi. Unit Testing (LESS, SASS, CoffeeScript), and "language" files. The storage directory contains compiled Blade templates, file based sessions, file caches, and other files generated by the framework. The tests directory Failed Jobs Session Configuration Session Usage Flash Data Database Sessions Session Drivers Templates Blade Templating Other Blade Control Structures Extending Blade Unit Testing Introduction0 码力 | 242 页 | 1.44 MB | 1 年前3
《Slides Dev Web》 03. Laravel
Routes RESTful • ORM (Eloquent, implémentation du pattern Active Record) • Migrations • Moteur de templates (Blade) • Pagination • Authentification, sessions • Mail • Tests unitaires • Extensible par packages80 码力 | 8 页 | 224.34 KB | 1 年前3
共 5 条
- 1













