Hallo! Selamat Datang di Marketplace produk digital, Freelancer terbaik di indonesia (68414 Members, 793 Products, 5353 Topic, 13045 Comments)

Tampilan Load css error di salah satu halaman Project Codeigniter

Dibuat
Login Terakhir 1 Tahun lalu,
Telah Dilihat 2236 Kali
indrianto adi Mengatakan : Sultan Account
  1. Assalamualaikum Warahmatullahi Wabarakatuh...
  2. Mau tanya teman2 kenapa ya di menu halaman cssnya tidk jalan jadi berantakan tapi dimenulain bisa
  3. Fitrur
  4. Php7
  5. Ci 3

Ada 7 Jawaban

Hardiansyah
commented on 03 Apr 2020 16:19:42
  1. Assalamualaikum,.. lampirkan screenshot dan file scriptnya biar bisa di analisa
indrianto adi
commented on 03 Apr 2020 16:20:46
  1. Assalamualaikum,..
  2. Okke wiait
indrianto adi
commented on 03 Apr 2020 16:23:35
  1. Assalamualaikum,..
  2.  
  3. //tampilan detailhalaman langsung menggunakan SEO (pages/namajudulseo)
  4. <div class="col-md-12">
  5. <section id="about" class="about">
  6. <div class="container">
  7.  
  8. <div class="row no-gutters">
  9. <div class="col-lg-6 video-box">
  10. <img src="assets/img/about.jpg" class="img-fluid" alt="">
  11. <a href="https://www.youtube.com/watch?v=jDDaplaOz7Q" class="venobox play-btn mb-4" data-vbtype="video" data-autoplay="true"></a>
  12. </div>
  13.  
  14. <div class="col-lg-6 d-flex flex-column justify-content-center about-content">
  15.  
  16. <div class="section-title">
  17. <h2>Tentang Kami</h2>
  18. <p>
  19. <?php
  20. echo "$rows[isi_halaman]";
  21.  
  22. ?>
  23. </p>
  24. </div>
  25. </div>
  26. </div>
  27.  
  28. </div>
  29. </section>
  30. </div>
  31.  
  32.  
  33.  
  34.  
  35. //controller halaman
  36. <?php
  37. defined('BASEPATH') OR exit('No direct script access allowed');
  38. class Halaman extends CI_Controller {
  39.  
  40. public function detail(){
  41. $last = end($this->uri->segments);
  42. $query = $this->model_utama->view_where_ordering_limit('halamanstatis',array('judul_seo'=>$last),'id_halaman','DESC',0,1);
  43. //$query = $this->model_utama->view_where_ordering_limit('cms_pages',array('seo_title'=>$this->uri->segment(3)),'id_pages','DESC',0,1);
  44. if ($query->num_rows()<=0){
  45. redirect('main');
  46. }else{
  47. $row = $query->row_array();
  48. $data['title'] = cetak($row['judul']);
  49. $data['description'] = cetak_meta($row['isi_halaman'],0,500);
  50. $data['keywords'] = cetak($row['judul']);
  51. $data['rows'] = $row;
  52.  
  53. $dataa = array('dibaca'=>$row['dibaca']+1);
  54. $where = array('id_halaman' => $row['id_halaman']);
  55. $this->model_utama->update('halamanstatis', $dataa, $where);
  56.  
  57. //$data['disqus'] = $this->disqus->get_html();
  58. $this->template->load(template().'/template',template().'/detailhalaman',$data);
  59. }
  60. }
  61.  
  62. }
  63.  
  64.  
  65. //template
  66. <!DOCTYPE HTML>
  67. <html lang = "en">
  68. <head>
  69. <title><?php echo $title; ?></title>
  70. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  71. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  72. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
  73. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  74. <meta name="robots" content="index, follow">
  75. <meta name="description" content="<?php echo $description; ?>">
  76. <meta name="keywords" content="<?php echo $keywords; ?>">
  77. <meta name="author" content="phpmu.com">
  78. <meta name="robots" content="all,index,follow">
  79. <meta http-equiv="Content-Language" content="id-ID">
  80. <meta NAME="Distribution" CONTENT="Global">
  81. <meta NAME="Rating" CONTENT="General">
  82. <link rel="canonical" href="<?php echo "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>"/>
  83. <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,600,600i,700,700i,900" rel="stylesheet">
  84. <link href="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  85. <link href="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/bootstrap/css/bootstrap.css" rel="stylesheet">
  86. <link href="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/icofont/icofont.min.css" rel="stylesheet">
  87. <link href="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  88. <link href="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/owl.carousel/assets/owl.carousel.min.css" rel="stylesheet">
  89. <link href="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/animate.css/animate.min.css" rel="stylesheet">
  90. <link href="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/venobox/venobox.css" rel="stylesheet">
  91. <link href="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/aos/aos.css" rel="stylesheet">
  92. <!-- Template Main CSS File -->
  93. <link href="template/<?php echo template(); ?>/<?php echo background(); ?>/css/style.css" rel="stylesheet">
  94.  
  95. </head>
  96.  
  97. <?php include "header.php"; ?>
  98.  
  99. <body>
  100.  
  101. <main id="main">
  102. <section class="py-5">
  103. <?php echo $contents; ?>
  104. <div class="clear-float"></div>
  105.  
  106. </section>
  107. </main>
  108. <footer id="footer">
  109. <?php include"footer.php"; ?>
  110. </footer><!-- End Footer -->
  111.  
  112. <a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>
  113.  
  114. <!-- Vendor JS Files -->
  115. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/jquery/jquery.min.js"></script>
  116. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  117. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/jquery.easing/jquery.easing.min.js"></script>
  118. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/php-email-form/validate.js"></script>
  119. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/owl.carousel/owl.carousel.min.js"></script>
  120. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/jquery-sticky/jquery.sticky.js"></script>
  121. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/venobox/venobox.min.js"></script>
  122. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/waypoints/jquery.waypoints.min.js"></script>
  123. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/counterup/counterup.min.js"></script>
  124. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/isotope-layout/isotope.pkgd.min.js"></script>
  125. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/vendor/aos/aos.js"></script>
  126. <!-- Template Main JS File -->
  127. <script src="template/<?php echo template(); ?>/<?php echo background(); ?>/js/main.js"></script>
  128.  
  129. </body>
  130.  
  131. </html>
indrianto adi
commented on 03 Apr 2020 16:26:55
  1. Assalamualaikum,.. ini tampilan nya
Terdapat 1 File dilampirkan :
1. Untitled-13.png (142 KB)
Hardiansyah
commented on 03 Apr 2020 17:59:17
  1. Assalamualaikum,.. coba di ganti semua dari template/ menjadi <?php echo base_url(); ?>template/
indrianto adi
commented on 03 Apr 2020 20:50:47
  1. Assalamualaikum,.. tetap saja mas tidak bisa juga
  2. apanya ya ?
indrianto adi
commented on 03 Apr 2020 21:01:12
  1. Assalamualaikum,.. sudah bisa mas.. thanks yaa
Maaf, Untuk Memberikan Komentar Anda Harus Login !!!

Online