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

View pada Laravel Part1

 

 Mengenal dan Membuat View

Sebelumnya anda sudah membuat route dan menampilkan pesan berupa string sebagai respon untuk halaman homepage dan about.
Laravel adalah framework yang menganut pola Model-View-Controller (MVC) dengan "V" adalah View . Bagaimana memberikan respon berupa view pada Laravel ?

Pada tutorial ini kita akan mengganti respon string untuk halaman homepage dan about menjadi respon view.

Langkah 1 :
Buat sebuah file bernama homepage.php, kemudian simpan di folder belajarlaravel/resources/views. Berikut ini list codenya :





Langkah 2 :
Buat sebuah file bernama about.php, kemudian simpan di folder belajarlaravel/resources/views. Berikut ini list codenya : 




Langkah 3 :
Buka file routes.php ubah isinya menjadi :



      Fungsi view() adalah fungsi helper Laravel untuk memanggil file view yang telah kita buat. Untuk memanggil suatu file view, kita cukup memberikan  namanya tanpa ekstensi .php, seperti pada route di atas. Laravel akan mencari di lokasi default file-file view disimpan, yaitu folder belajarlaravel/resources/views.



Langkah 4 :
Pada browser, ketik alamat http://belajarlaravel.dev, maka tampilan halaman homepage menjadi seperti berikut ini  :





Demikian juga dengan halaman about http://belajarlaravel.dev/about.



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