Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit f856c58

Browse files
committed
[MOD] Base site URL and add installation method
1 parent ffeba99 commit f856c58

6 files changed

Lines changed: 65 additions & 13 deletions

File tree

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
1-
# CI-AdminLTE v1.7.0
1+
# CI-AdminLTE
22
CodeIgniter 3.x with AdminLTE 2.3.x
33

4+
## Installation
5+
6+
1. Unzip the package.
7+
2. Upload the `CI-AdminLTE` folders and files to your server. Normally the index.php file will be at your root.
8+
3. Open the `application/config/common/dp_config.php` file with a text editor and set your base URL:
9+
10+
```
11+
// Fill in the file of your project here when you develop locally.
12+
$host_dev = 'CI-AdminLTE';
13+
14+
// Fill in the domain name here when your project is online.
15+
// Example : www.johndoe.com
16+
// johndoe.com
17+
$host_prod = 'your_domain.tld';
18+
```
19+
420
## Demo
521

622
Coming soon
723

824
### Login
9-
* Email : `[email protected]`
10-
* Password : `password`
25+
* Email : `[email protected]` / Password : `password`
1126

1227
## Browser Compatibility
1328
Support for most major browsers including Chrome, Firefox, IE9+, Opera and Safari.

application/config/common/dp_config.php

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,51 @@
11
<?php
22
defined('BASEPATH') OR exit('No direct script access allowed');
33

4+
/*
5+
|--------------------------------------------------------------------------
6+
| Base Site URL
7+
|--------------------------------------------------------------------------
8+
|
9+
*/
10+
// Possible hosts locally. You can add some if needed.
11+
$config['host_dev'] = array('localhost', '127.0.0.1', '::1');
412

13+
// Fill in the file of your project here when you develop locally.
14+
$host_dev = 'CI-AdminLTE';
15+
16+
// Fill in the domain name here when your project is online.
17+
// Example : www.johndoe.com
18+
// johndoe.com
19+
$host_prod = 'your_domain.tld';
20+
21+
// WARNING: Do not modify the lines below
22+
$domain = (in_array($_SERVER['HTTP_HOST'], $config['host_dev'], TRUE)) ? $_SERVER['HTTP_HOST'] . '/' . $host_dev : $host_prod;
23+
24+
$config['base_url'] = ( ! empty($_SERVER['HTTPS'])) ? 'https://' . $domain : 'http://' . $domain;
25+
26+
/*
27+
|--------------------------------------------------------------------------
28+
| Index File
29+
|--------------------------------------------------------------------------
30+
|
31+
*/
32+
$config['index_page'] = '';
33+
34+
/*
35+
|--------------------------------------------------------------------------
36+
| Assets
37+
|--------------------------------------------------------------------------
38+
|
39+
*/
540
$config['assets_dir'] = 'assets';
641
$config['frameworks_dir'] = $config['assets_dir'] . '/frameworks';
742
$config['plugins_dir'] = $config['assets_dir'] . '/plugins';
843

44+
/*
45+
|--------------------------------------------------------------------------
46+
| Upload
47+
|--------------------------------------------------------------------------
48+
|
49+
*/
950
$config['upload_dir'] = 'upload';
1051
$config['avatar_dir'] = $config['upload_dir'] . '/avatar';
11-

application/config/config.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
| variable so that it is blank.
3030
|
3131
*/
32-
//$config['index_page'] = 'index.php';
33-
$config['index_page'] = '';
32+
$config['index_page'] = 'index.php';
3433

3534
/*
3635
|--------------------------------------------------------------------------

application/views/admin/_templates/footer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
<footer class="main-footer">
77
<div class="pull-right hidden-xs">
8-
<b><?php echo lang('footer_version'); ?></b> 1.3.0
8+
<b><?php echo lang('footer_version'); ?></b> Development
99
</div>
10-
<strong><?php echo lang('footer_copyright'); ?> &copy; 2014-<?php echo date('Y'); ?> <a href="http://almsaeedstudio.com" target="_blank">Almsaeed Studio</a> &amp; <a href="http://domprojects.com" target="_blank">domProjects</a>.</strong> <?php echo lang('footer_all_rights_reserved'); ?>.
10+
<strong><?php echo lang('footer_copyright'); ?> &copy; 2014-<?php echo date('Y'); ?> <a href="http://almsaeedstudio.com" target="_blank">Almsaeed Studio</a> &amp; <a href="https://domprojects.com" target="_blank">domProjects</a>.</strong> <?php echo lang('footer_all_rights_reserved'); ?>.
1111
</footer>
1212
</div>
1313

robots.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
# Allow crawling of all content
44
User-agent: *
55
Disallow: /admin/
6-
Allow: /
7-
Sitemap: http://www.domprojects.com/sitemap.xml
6+
Allow: /

sitemap.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
43
<url>
5-
<loc>http://www.domprojects.com/</loc>
6-
<lastmod>2015-09-26</lastmod>
4+
<loc>https://domprojects.com</loc>
5+
<lastmod>2018-02-06</lastmod>
76
<changefreq>weekly</changefreq>
87
<priority>1.0</priority>
98
</url>

0 commit comments

Comments
 (0)