Postingan lainnya
Kelas Premium!
Belajar bikin website dari nol sekarang
Gunakan kupon "lebihcepat" untuk diskon 25%!
Css tidak muncul saat di load pada templating adminlte-2.4.5
-autoload helper✔ -pemanggilan css dengan
3 Jawaban:
ini file controller Dashboard.php <pre> <?php defined('BASEPATH') OR exit('No direct script access allowed');
class Dashboard extends CI_Controller{
public function __construct() { parent::__construct(); $this->load->helper('url'); //Proteksi halaman //AKTIFKAN NANTI KALAU CSS BISA MUNCUL $this->simple_login->check_login(); } //Halaman utama website atau home page public function index() { $data= array( 'title' => 'Halaman Administrator', 'isi' => 'admin/dashboard/list' ); $this->load->view('admin/layout/wrapper', $data, FALSE); } } </pre>
ini file views/admin/layout/head.php <pre> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title> <?php echo $title ?> </title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.7 --> <link rel="stylesheet" href="https://maxcdn.boostrapcdn.com/boostrap/4.4.1/css/boostrap.min.css"> <!-- <link rel="stylesheet" href="<?php echo base_url() ?>assets/admin/bower_components/bootstrap/dist/css/bootstrap.min.css"> --> <!-- Font Awesome --> <link rel="stylesheet" href="<?php echo base_url() ?>assets/admin/bower_components/font-awesome/css/font-awesomemin.css"> <!-- Ionicons --> <link rel="stylesheet" href="<?php echo base_url() ?>assets/admin/bower_components/Ionicons/css/ionicons.min.css"> <!-- DataTables --> <link rel="stylesheet" href="<?php echo base_url() ?>assets/admin/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css"> <!-- Theme style --> <link rel="stylesheet" href="<?php echo base_url() ?>assets/admin/dist/css/AdminLTE.min.css"> <!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. --> <link rel="stylesheet" href="<?php echo base_url() ?>assets/admin/dist/css/skins/_all-skins.min.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]-->
<!-- Google Font --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"> <!-- ckeditor --> <script src="<?php echo base_url() ?>assets/ckeditor/ckeditor.js" type="text/javascript"></script> <script src="<?php echo base_url() ?>assets/ckeditor/samples/js/sample.js" type="text/javascript"></script>
</head> <body class="hold-transition skin-blue sidebar-mini"> <div class="wrapper"> </pre>
ini letak folder di assetsnya <img src='https://scontent.fsub6-4.fna.fbcdn.net/v/t1.0-9/fr/cp0/e15/q65/97332007_1583963531756435_968398134633824256_n.jpg?_nc_cat=101&_nc_sid=110474&efg=eyJpIjoidCJ9&_nc_eui2=AeHFg8RlO3sKfNY5qy9B0nAOcy-tiAQtkYZzL62IBC2Rhs3IcDb-xc2azvsLN09AsICHYub01t4BvEaC05PzEajZ&nc_ohc=GYauMPt8j_MAX8-O-W&_nc_ht=scontent.fsub6-4.fna&_nc_tp=14&oh=9d19cad4096985470cd2b5ef68ac0cb5&oe=5EE6999D'>