Kali ini saya belajar mengatur template dengan framework CodeIgniter.
Untuk bagian pertama ini, saya belajar bagaimana menyusun template dengan Controller dan View pada CodeIgniter. Sekilas sebagai pelengkap dokumentasi ini, pemahaman sederhana saya tentang Controller adalah suatu class dalam konsep OOP. Sedangkan View adalah sebagai sarana untuk menampilkan perintah-perintah dan nilai dari Controller situs judi bola
Saya mencoba merancang template secara umum, yakni memiliki header, topmenu, content, dan footer.
*Klik pada gambar untuk memperjelas
*Klik pada gambar untuk memperjelas
Dalam menyusun template di CodeIgniter, antara elemen satu dengan yang lain dipisahkan. Maksudnya antara Header, Menu, dll tidak berada pada file yang sama. Oleh karena itu kita harus membuat elemen-elemen tersebut.
Berikut ini adalah pohon directory saya. Saya menggunakan CI 1.7.2.
Oleh karena itu BASE URL pada system/application/config/config.base_url, saya ubah sebagai berikut:
Sehingga jika saya ketikkan pada browser, http://localhost/Mytemplates/index.php, akan muncul welcome_message dari CodeIgniter. Ini adalah tampilan dari class Welcome pada controller default-welcome.
Berikutnya adalah membuat masing-masing elemen. Saya simpan pada folder –layout-pada root directory tadi.
1.) header.php
2.) topmenu.php
4.) footer.php
Kita siapkan Controller untuk menampikan elemen-elemen tersebut, C:\xampp\htdocs\MyTemplates\system\application\controllers\Home.php
Home.php ini akan menampilkan template.php pada view, yang menampung header.php, topmenu.php, dll. Sebenarnya dapat juga kita dapat menampilkan elemen-elemen ini dari Home.php. Tapi saya gunakan template.php untuk latihan berikutnya dan agar file lebih rapi.
Home.php
Sedangkan template.php ditempatkan pada Views. à C:\xampp\htdocs\MyTemplates\system\application\views\layout\template.php.
Berikutnya debugging.
http://localhost/Mytemplates/index.php/home
Kesimpulan:
Pemakaian framework pada penyusunan layout/template adalah agar programmer lebih mudah dalam proses modifikasi pada tiap elemen. Kerangka dari apa yang kita tulis sebelumnya secara mudah dapat digambar sbb:














hepi88 merupakan situs Togel dan slot resmi di Indonesia, berbagai macam provider slot terbaru yang paling gacor kami hadirkan
janjitoto Situs terpercaya untuk para pecinta online gaming di Indonesia dengan berbagai pilihan permainan dan gampang menang
https://stm99.site/
janjitoto Dikenal sebagai brand terkemuka dengan RTP Pay4d NO.1 dan Janji Toto Garansi Slot 100%,
Gocagame merupakan penyedia jasa top up joy domino termurah
Paito warna hk adalah tabel Paito Hk yang diberikan warna untuk mencari hasil angka hk malam hari ini.
berlian888 memiliki banyak keuntungan untuk semua pemain yang sudah daftar menggunakan link alternatif resmi terbaru 2024 disini.
Top up royal dream murah terpercaya dengan harga termurah dan proses instant 2024.
jasa seo profesional dari freelancer berpengalaman dalam menaikkan peringkat website di Google dan meningkatkan traffic secara organik.
slot gacor
Ligapedia
Ligapedia
slot gacor hari ini
ligapedia
slot online
slot gacor pragmatic play
slot gacor
ligapedia
slot online
slot gacor hari ini
slot gacor
slot gacor pragmatic play
ligapedia
mix parlay
berlian888 dikenal juga sebagai bandar slot gacor yang sering memberikan jackpot dengan mudah karena return to player (RTP) yang dimiliki sangat tinggi
rudalslot menyediakan beberapa fasilitas perlu dipahami bahwa konteks game ini bukan hanya mencari kemenangan saja, terdapat cara lain yg perlukan untuk memperoleh kemenangan
memilih Lampu kolam renang ternyata tidak semudah yang dibayangkan. Ada beberapa aspek yang harus dipertimbangkan untuk memperoleh hasil akhir yang sesuai dengan keinginan
travel umroh jambi Ajwa Tour Indonesia akan memandu pelaksanaan ibadah umrah/haji secara baik, mulai dari persiapan keberangkatan, kegiatan di tanah suci, sampai kembali ketanah air.
warnetslot adalah daftar situs slot gacor malam ini dan slot 88 terpercaya dengan hadiah jackpot terbesar dan jaminan paling gampang menang maxwin dan bonus menarik setiap hari.
Pusatskk.com memiliki layanan terpadu, saya sebagai marketing disini sudah sejak lama, saya merekomendasikan untuk SKK SBU sewa skk konstruksi
motoslot menawarkan game online terbaik dengan tanggung jawab penuh dan game fairplay. Keamanan selalu menjadi prioritas kami.
Totebag untuk laptop yang bisa digunakan oleh pria dan wanita adalah pilihan ideal untuk mereka yang mencari tas yang serbaguna dan stylish. Totebag ini biasanya terbuat dari bahan yang kuat dan tahan lama, dilengkapi dengan kompartemen khusus untuk laptop sehingga dapat melindungi perangkat Anda.
Desain dari totebag ini biasanya simpel namun tetap menarik untuk dilihat oleh siapapun. Totebag ini juga memiliki ruang yang cukup luas untuk menyimpan berbagai barang bawaan lainnya seperti alat tulis, buku, dan barang-barang penting lainnya.
Warna yang netral seperti hitam, abu-abu, atau cokelat sering kali menjadi pilihan yang populer bagi pria dan wanita. Namun, ada juga totebag dengan desain yang lebih colorful dan feminin bagi mereka yang suka tampil beda.
Totebag untuk laptop yang dapat digunakan oleh pria dan wanita dapat ditemukan dengan mudah di berbagai toko online atau offline yang menjual berbagai jenis tas. Pastikan untuk memilih totebag dengan ukuran dan fitur yang sesuai dengan kebutuhan Anda sehingga dapat memberikan perlindungan optimal untuk laptop Anda.
Web development services Our expert team builds sophisticated web apps, managing everything from SaaS platforms to internal tools. We handle backend workflows, API integrations, and more, ensuring your vision is tailored to your business need
Situs dengan RTP kemenangan slot online tertinggi di 2024 --> iqos888
roomba tv Delivering Top-notch IPTV Solutions at Affordable Costs
翻譯 服務 精英亞洲是您在香港的翻譯服務專家,致力於為企業提供準確和專業的翻譯服務。我們專業翻譯團隊涵蓋了東南亞和東亞地區的主要語言。
Elevate your travel agency's visibility and attract more clients with Matebiz Pvt Ltd's specialized Digital Marketing Services. Our team of experts crafts tailored strategies that enhance your online presence, optimize advertising campaigns, and engage potential travelers. From SEO to social media management and targeted ads, we provide comprehensive solutions that drive traffic and increase bookings. Partner with us to transform your advertising travel agency efforts into measurable success. Contact Matebiz today to get started and watch your travel business soar!
Dec Master Cleaning is your go-to choice for top-rated house cleaning services in Massachusetts. Our professional team in Worcester, MA, is dedicated to delivering unparalleled cleanliness and attention to detail for every home. Specialising in providing premium cleaning services tailored to meet your needs, we ensure meticulous care and thorough cleaning of your space. Whether you require a one-time deep clean or regular maintenance, Dec Master Cleaning guarantees exceptional service and customer satisfaction. Trust Dec Master Cleaning to create a pristine living environment that exceeds your expectations of cleaning services Worcester MA.
B1 Driving School offers unparalleled driving lesson packages in Brisbane, ensuring top-notch instruction and personalized guidance for learners of all levels. Conveniently located for those searching for "driving lessons near me," B1 Driving School is committed to providing comprehensive training to help you become a confident and safe driver. With a team of experienced instructors and a focus on individualized lessons, our school equips students with essential skills and knowledge for navigating the roads with ease. Choose B1 Driving School for expert guidance and a solid foundation in driving expertise near Brisbane.
Woodside Group is your premier destination for top-quality bathroom renovations near you, coupled with comprehensive building maintenance services. Whether you're seeking to revamp your bathroom space or require expert maintenance solutions, our experienced team at Woodside Group has the expertise to cater to your needs. From concept to completion, we deliver exceptional results that blend functionality and aesthetics seamlessly. With a focus on attention to detail and superior craftsmanship, Woodside Group ensures that your renovation and maintenance projects are executed to perfection. Trust Woodside Group for unparalleled bathroom transformations and reliable Bathroom Renovations Near Me.
The Sinematic Pineapple stands out among the top commercial production companies in Los Angeles, offering expert services to bring your vision to life. As a trusted TV commercial production company, we specialize in creating captivating and impactful commercials that resonate with audiences. Our team in Los Angeles combines creative flair with technical expertise to produce high-quality, engaging content that showcases your brand effectively. Choose The Sinematic Pineapple for innovative concepts, professional execution, and results-driven commercial production that sets you apart in the competitive market. Transform your brand's narrative with our unparalleled Production Services in New York City.
We offer exceptional solar panel installation in Dubai, empowering homes and businesses with sustainable energy solutions. Our expert team combines knowledge and experience to deliver efficient and reliable solar installations tailored to your needs. In addition to our solar services, we provide top-notch electrical services in Dubai, ensuring safety and quality in every project. Trust Wadi Al Mehran for seamless solar panel installations and comprehensive electrical solutions that enhance your property's energy efficiency and performance. Embrace sustainability and innovation with Wadi Al Mehran in Dubai.
Together Thrive is committed to promoting awareness of women's rights in India and educating individuals on the laws that safeguard women's interests. Our platform serves as a beacon for empowering women through knowledge and resources related to legal rights and protections. By fostering a supportive community and facilitating discussions on key issues, Together Thrive strives to enhance awareness and advocacy for gender equality and women's empowerment in India. Join us in championing the cause of women's rights and legal empowerment to create a more equitable and inclusive society for all.
PT. WIERA INTERNATIONAL VENTURES is a leading export services provider committed CharcoalBriquetteExporter to empowering businesses and advancing global trade.