《Slides Dev Web》02. Introduction aux frameworks PHP
Design Patterns et webdev • 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 • 10https://en.wikiquote.org/wiki/Rasmus_Lerdorf 11https://kinsta.com/fr/blog/php-8/ 12http://php.net/manual/en/history.php.php 13https://en.wikipedia.org/wiki/PHP 14http://getcomposer.org/ 8 Figure 5: source15 page=equipe&id=25 HTTP/1.1 puis les entêtes, ici: Host: www.he-arc.ch. La réponse du serveur est du même type, le code de réponse (HTTP/1.1 200 OK), les entêtes, une ligne vide puis le contenu. La demande0 码力 | 24 页 | 1.03 MB | 1 年前3
Laravel 5.0 Documentation
out the attempt method: Authentication Introduction Authenticating Users The User Registrar Manual Authentication I'm looping forever. @endwhile @include('view.name') You may also pass an array of data to the included $compiler->createMatcher('datetime'); return preg_replace($pattern, '$1format(\'m/d/Y H:i\'); ?>', $view); }); Including Sub-Views Overwriting Sections Displaying Language Lines0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentationreturn them to the client. Let's look at an example! 31 Creating the view: I'm stored in views/home/index.php! Returning the view from a route: Route::get('/', function() when an event fires: Registering an event handler: Event::listen('loaded', function() { // I'm executed on the "loaded" event! }); The Closure we provided to the method will be executed each time PDO::ATTR_EMULATE_PREPARES => false, ), More about the PDO connection attributes can be found in the PHP manual. 78 RAW QUERIES The Basics The query method is used to execute arbitrary, raw SQL against0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning Laravelno name. @endunless https://riptutorial.com/ 18 Loops 'While' loop @while (true)I'm looping forever.
@endwhile 'Foreach' loop @foreach ($users as $id => $name)User {{ $name file along with your Model, use the following command, where -m will also generate the migration file: php artisan make:model [ModelName] -m In addition to creating the model, this creates a database because we don't already have a table so would run the following command. php artisan make:model Cat -m https://riptutorial.com/ 87 This command will create two files: In the App folder: app/Cat.php 1
0 码力 | 216 页 | 1.58 MB | 1 年前3
《Slides Dev Web》 01. Cours devweb
externes 1https://rs.he-arc.ch/index.php?id_menu=78&id_parent=76 1 – Webdesign (A. Keller2) ? – Flask (M. Amiguet3) ? – Automatisation du déploiement (R. Emourgeon4) ? – Vos présentations ? Vos propositions rôles dans une équipe de développement web, workflow • Ne pas réinventer la roue ou tout faire soi-même • Critères d’évaluation d’un projet • En profiter pour apprendre des choses qui vous intéressent l’utilisation du dépôt • Le temps disponible à l’horaire ne suffira pas ! • Essayez de commit avec la même identité • Signalez dans le commit msg si vous n’êtes pas l’auteur • Le déploiement est long : commencez0 码力 | 7 页 | 129.56 KB | 1 年前3
《Slides Dev Web》 06. HTTP & AJAX
1xx : Information • 2xx : Succès • 3xx : Redirection • 4xx : Erreur Client • 5xx : Erreur Serveur Méthodes HTTP (verbes) • GET : Demander une ressource • POST : Création d’une ressource • PUT : Remplacement Fetch API • Pas obligatoire d’avoir du JS, XML ni d’être asynchrone ! AJAX • XHR est devenue la méthode standard jusqu’à 2018 – Popularisée par Google (GMaps, GMail, …) – Le w3c fait évoluer un draft10 xul.fr/xml-ajax.html#ajax-exemple 5 • Tester12 • D’autres13 façons de faire XHR : propriétés et méthodes • readyState, status, onreadystatechange • responseText, responseXML • open (Verbe, URI, async)0 码力 | 11 页 | 91.09 KB | 1 年前3
《Slides Dev Web》 10. Rwdcaractères – modes d’interaction (ex: tactile, hover, …) – … • 1 seul site à gérer : m.cool.com ni de cool.com/mobile • Le même contenu pour tous • Souvent basé sur la largeur de l’écran • CSS3 • Responsive • Fluid Grids : Disposition et taille des éléments en % • Flexible images (and media) : Taille des médias en % • Autres considérations – Adaptatif avec grilles fixes2 – Performances3 : tps chargement0 码力 | 7 页 | 76.36 KB | 1 年前3
《Slides Dev Web》 09. Services Web
Hypermédia comme moteur de l’état de l’application • Ressource : information ou moyen d’accès – ex. : météo du jour, adresse ajout d’un article à un blog, … • Représentation : forme donnée à la ressource … REST • Principes – Identifier les ressources avec des URI (noms) – Actions déterminées par des méthodes HTTP (verbes) ∗ GET : READ (sûre) ∗ POST : CREATE ∗ PUT, PATCH : UPDATE (idempotente) ∗ DELETE Rappel – Sûreté : Etat de la ressource (contenu) inchangé – Idempotence : plusieurs appels donnent le même résultat REST • L’appel d’une ressource avec des verbes différents produira un résultat différent0 码力 | 6 页 | 47.90 KB | 1 年前3
Laravel 6.0 中文文档action="{{ route ('verification.resend') }}"> @csrf . 本文档由学院君提供 学院君致力于提供优质 Laravel 会在后台静默运行 Nginx,然后通 过 DnsMasq,Valet 会代理所有针对 *.test 域名的请求指向本地安 装的站点目录。 此外,这样一个极速的 Laravel 开发环境只需要占用 7M 内存。 Valet 并不是想要替代 Vagrant 或者 Homestead,只是提供了另外 一种选择,更加灵活、极速、以及占用更小的内存空间。正是基于这 些原因,我们将 Valet 称之为轻量级的开发环境。 'formatter' => Monolog\Formatter\HtmlFormatter::cl ass, 'formatter_with' => [ 'dateFormat' => 'Y-m-d', ], ], 如果你使用的是能够自己提供格式化工具的 Monolog 处理器,可以 将 formatter 配置项的值设置为 default: 'newrelic' => [ 'driver'0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.2 中文文档$user->name }} @emptyNo users
@endforelse @while (true)I'm looping forever.
@endwhile 包含子视图 Blade 的 @include 指令允许你很简单的在一个视图中包含另一个 Blade 视图,所有父级 视图中变量在被包含的子视图中依然有效: Blade::directive('datetime', function($expression) { return "format('m/d/Y H:i'); ?>"; }); } /** * 在容器中注册绑定. * * @return void 正如你所看到的,Laravel 的辅助函数 with 被用在该指令中,with 方法简单返回给定的 对象/值,允许方法链。最终该指令生成的 PHP 代码如下: format('m/d/Y H:i'); ?> 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 69 四、架构0 码力 | 377 页 | 4.56 MB | 1 年前3
共 19 条
- 1
- 2













