Ex Machina (2015) 's Review

Image
From the beginning of this film, which is how humans can't be escaped from the name of Technology. Yes, modern humans today certainly can't be escaped from laptops, smartphones, and other things related to technology. In this film where a boss named Nathan intends to create an interface that can help people make their work easier. We all know if making an interface is not easy. In this case, the computer and its equipment must be designed in accordance with the desired needs and can help humans in their daily work (according to specific tasks given). If we talk about interfaces, it will offend the User Interface. User Interface here is more than what humans can see, touch or hear. The user interface includes concepts, user needs to know computer systems, and must be integrated into the entire system. The user interface isn't enough to just look 'good' but must be able to support tasks done by humans and has made to avoid minor mistakes. In this film, it c

Blade (Template Engine) pada Laravel Par1




Mengenal dan Membuat Halaman Blade Templates

Pada tutorial sebelumnya , jika anda mengikuti tutorial dari saya pastinya anda sudah membuat file view  sebagai respon untuk menampilkan data. Sekarang saatnya untuk mengenal Blade.
Blade adalah template engine Laravel . Pada dasarnya, Blade adalah view, namun dengan Blade kita memiliki sintak-sintak tambahan yang dapat membantu kita untuk menampilkan data. Hal yang paling menarik dari Blade adalah fitur Template Inheritance .

Baik, tanpa bertele-tele. Mari kita buat contoh file Blade sederhana. Ikuti langkah-langkah berikut ini:

Langkah 1:
Pada folder belajaralaravel/resources/views/mahasiswa , rename file index.php menjadi index.blade.php . File tersebut adalah file view yang kita pakai untuk menampilkan data mahasiswa pada latihan sebelumnya. Jadi sekarang untuk menampilkan data mahasiswa, kita memakai file belajaralaravel/resources/views/mahasiswa/index.php

Langkah 2:
Pada browser anda, ketik alamat http://belajarlaravel/mahasiswa , maka akan muncul daftar mahasiswa seperti pada latihan sebelumnya
Jadi untuk membuat file Blade, cukup memberikan ekstensi .blade.php pada file view. Sedangkan pada pemanggilan file Blade, sama seperti memanggil file view biasa. Laravel sangat pintar untuk menentukan apakah file view yang dipanggil adalah file view biasa atau file Blade. 
 

























Comments

Popular posts from this blog

PERANGKAT BERGERAK (MOBILE DEVICE)

Membuat Aplikasi Penjualan Sederhana Menggunakan VB.Net dan database Access 2010 (CRUD)

Ex Machina (2015) 's Review