P EMROGRAMAN W EB II Lasmedi afuan, ST.,M.Cs. T OPIC CI URL Controller View.

Slides:



Advertisements
Presentasi serupa
Pelatihan Pembuatan & Pengelolaan Website
Advertisements

Praktikum PTI Sekolah Tinggi Ilmu Statistik Oleh : SIS - BPS Content Management System.
CARA INSTALASI XAMPP.
CodeIgniter By ISNARDI, M.Kom.
Database Android Dwi Muktianto
WITH FANDI SUSANTO S.SI. Pemrograman Aplikasi Bergerak By Fandi Susanto S.Si.
TEKNOLOGI APLIKASI WEB Framework PHP – Code Igniter Ferry Astika S.
CRUD 3 STMIK AKAKOM 2014 Yii Framework
Konsep Pemrograman Web
P EMROGRAMAN W EB II Lasmedi afuan, ST.,M.Cs. T OPIC Konsep OOP Class Properti Method Identifier Objek Overriding.
Aplikasi Jaringan III: Membuat Webpage Sederhana Matrikulasi Pedati 2005 Bahan diramu dari telaga.cs.ui.ac.id/WebKuliah/webdesign.
Lecture 2 Introduction to C# - Object Oriented Sandy Ardianto & Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
OBJECT ORIENTED PROGRAMMING
Pengantar Teknologi Mobile 8
Irfan Santiko, M.Kom Build Web With Wordpress Framework.
Teknologi Web.
Pemrograman Internet Mobile 7 PHP: Hypertext Preprocessors.
P EMROGRAMAN W EB II Lasmedi afuan, ST.,M.Cs. T UGAS Ada Pertanyaan ???
Review :: Kisi-kisi UTS ::
Model 2 STMIK AKAKOM 2014 Yii Framework
P EMROGRAMAN W EB II Lasmedi afuan, ST.,M.Cs. T OPIC Framework Jenis-Jenis Framework PHP.
P EMROGRAMAN W EB II Lasmedi afuan, ST.,M.Cs. T OPIC Library Helper.
Pengantar Teknologi Mobile 8
Class and Object Introduction Specifying a Class Defining Member Function A C++ Program with Class Nesting of Member Functions Private Member Functions.
Controller.  Instalasi dan Konfigurasi Web Framework  Konsep Dasar Controller  Aturan Penulisan fungsi.
Oleh : Eko Prianto. Read Carefully  another section at the same document  to a different document  to a different Web page  to a variety of other.
Testing Implementasi Sistem Oleh :Rifiana Arief, SKom, MMSI
Upload dan Install theme
Pengenalan Blog, Wordpress, CMS dan Joomla!
P EMROGRAMAN W EB II Lasmedi afuan, ST.,M.Cs. T OPIC Session Class.
P EMROGRAMAN W EB II Lasmedi afuan, ST.,M.Cs. T OPIC Model.
Debugging dan Exception Handling
CppUnit – The Unit Testing A slide demo of how CppUnit’s UnitTest works by an example.
Bayu Priyambadha, S.Kom.  Classes, which are the "blueprints" for an object and are the actual code that defines the properties and methods.  Objects,
P EMROGRAMAN W EB II Lasmedi afuan, ST.,M.Cs. T OPIC Validation Class.
Dasar query basis data dengan SQLite
Membangun Aplikasi Berbasis Web Dengan CodeIgniter Framework.
Perancangan dan Pemrograman Web
Pemrograman Web JavaScript
AJAX (Asynchronous Javascript And XML)
E-Office Application.
AJAX Teguh S.
Membangun Web Site“Cantik”
Macromedia Dreamweaver
Pemrograman internet ABU SALAM, M.KOM.
OOP.
CodeIgniter PHP Framework.
Content management systems
CodeIgniter PHP Framework.
Framework Codeigniter
Pemrograman Berorientasi Objek
PIBJ (PEMROGRAMAN INTERNET BERBASIS JAVA)
Bimbingan Teknis : Web Application : Threats and Countermeasures
Framework Codeigniter
Pengembangan Aplikasi Framework
Android AN’ ANQINUDIN L.,S.Kom.
laporan dengan ireport 3.5.2
Framework Codeigniter
Database User Account.
PEMROGRAMAN WEB II.
Welcome 8clicks Pte Ltd. About us  8CLICKS PTE LTD is best web Development Company in Singapore. It is famous for their web designing services. 8CLICKS.
Java Database Connectivity (JDBC)
Do you want to check your Zoho mail incoming or outgoing logs and unable to check, go through with this article and access Zoho mail incoming or outgoing.
Dendiadi Rahadi Ramlan Tuti Feryanti Vivi Meilaendri English For Communication Anggita, S.Pd, M.Pd.
Importance of Web Development Frameworks Frameworks, no doubt have become a crucial aspect of web development. In fact, many find the entire development.
MASIH INGAT ADA ROUTE ADA APA SAJA ?
HANDLING RUSH PRESIDENT UNIVERSITY NURLAELA RIZKINA.
Draw a picture that shows where the knife, fork, spoon, and napkin are placed in a table setting.
2. Discussion TASK 1. WORK IN PAIRS Ask your partner. Then, in turn your friend asks you A. what kinds of product are there? B. why do people want to.
CLASS VS OBJECT INTRODUCTION OF CLASS. keyword class diikuti dengan nama class yang kita inginkan. Lebih baik digunakan kata yang diawali huruf.
Transcript presentasi:

P EMROGRAMAN W EB II Lasmedi afuan, ST.,M.Cs

T OPIC CI URL Controller View

CI (C ODE I GNITER ) CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task.

C ODE I GNITER URL URL pada CI didesain lebih user friendly “URLs in CodeIgniter are designed to be search- engine and human friendly” CI menggunakan pendekatan url berbasis segment example.com/ news / article /my_article class method Id atau variabel yang akan dilewatkan melalui controller

URL S UFFIX Menambahkan url suffix example.com/index.php/products/view/shoes Menjadi example.com/index.php/products/view/shoes.html File yang harus dimodifikasi config/config.php Dengan url suffix, dapat menambahkan ekstensi sesuai dengan keiinginan.

C ONTROLLER Controller di CI berfungsi sebagai intermediary yang menghubungkan antara model dengan view.

M Y F IRST C ONTROLLER <?php Class Blog extends CI_Controller { public function index() { echo “this is my first controller”; } ?>

CO NTROLLER Lokasi penyimpanan controller C:\xampp\CI_FOLDER\Application\controllers

N AMA KELAS Valid Tidak valid

E XTENDS Digunakan untuk melalukan inherit dari class CI_Controller

S ELALU INGAT INI

N EXT C ONTROLLER <?php Class Blog extends CI_Controller { public function index() { echo "this is my first controller"; } public function myprofil() { echo "this is my profile"; } ?>

M ENGAKSES HALAMAN MYPROFIL Localhost/CI213/index.php/Blog/myprofil

M ELEWATKAN VARIABEL UNTUK DITAMPILKAN MELALUI CONTROLLER <?php Class Blog extends CI_Controller { public funtion tampil($nim,$nama) { echo “$nim $nama”; } ?>

<?php Class Blog extends CI_Controller { public function index() { echo "this is my first controller"; } public function myprofil() { echo "this is my profile"; } public function tampil($nim,$nama) { echo “$nim $nama”; } ?>

C LASS CONSTRUCTOR Jika ingin menggunakan controller parent Parent::__construct();

R ESERVED N AMES Controller Name Controller CI_Base _ci_initialize Default index

R ESERVED N AMES Functions is_really_writable() load_class() get_config() config_item() show_error() show_404() log_message() _exception_handler() get_instance()

Variables $config $mimes $lang

V IEW Menampilkan halaman web ( webpage) ke user. (ci_view.php) Belajar CI CI ku yang pertama

L OADING V IEW Ingat !! Controller digunakan untuk menjembatani antara model dan view

L OADING V IEW $this->load->view(‘ view name ');

<?php Class Blogview extends CI_Controller { public function index() { $this->load->view(‘ci_view’); } ?>

L OADING MULTIPLE VIEW <?php Class Blogview extends CI_Controller { public function index() { $this->load->view(‘header’); $this->load->view(‘kiri’); $this->load->view(‘kanan’); $this->load->view(‘footer’); } ?>