hi everybody
I m little speak english.
im use this way
<?php $base_url = (@$_SERVER['HTTPS'])? preg_replace('/http:/', 'https:', base_url()) : base_url(); ?>
example:
this is my header view file
location: ./aplication/view/inc/header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<title><?= $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="<?= $this->config->item('author_name').' '.$this->config->item('author_email'); ?>" />
<meta name="audience" content="all" />
<meta name="Robots" content="all" />
<meta name="googlebot" content="all" />
<?php $base_url = (@$_SERVER['HTTPS'])? preg_replace('/http:/', 'https:', base_url()) : base_url(); ?>
<base href="<?= $base_url ?>" />
<!-- Css -->
<link rel="stylesheet" type="text/css" href="inc/css/style.css" media="screen" />
<!-- //Css -->
<!-- Javascripts -->
[removed]
var base_url = '<?= base_url() ?>';
var site_url = '<?= site_url() ?>';
[removed]
[removed][removed]
[removed][removed]
[removed][removed]
<!-- //Javascripts -->
........................ other lines
how do you think ?
