-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MOD] Base site URL and add installation method
- Loading branch information
1 parent
ffeba99
commit f856c58
Showing
6 changed files
with
65 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
# CI-AdminLTE v1.7.0 | ||
# CI-AdminLTE | ||
CodeIgniter 3.x with AdminLTE 2.3.x | ||
|
||
## Installation | ||
|
||
1. Unzip the package. | ||
2. Upload the `CI-AdminLTE` folders and files to your server. Normally the index.php file will be at your root. | ||
3. Open the `application/config/common/dp_config.php` file with a text editor and set your base URL: | ||
|
||
``` | ||
// Fill in the file of your project here when you develop locally. | ||
$host_dev = 'CI-AdminLTE'; | ||
// Fill in the domain name here when your project is online. | ||
// Example : www.johndoe.com | ||
// johndoe.com | ||
$host_prod = 'your_domain.tld'; | ||
``` | ||
|
||
## Demo | ||
|
||
Coming soon | ||
|
||
### Login | ||
* Email : `[email protected]` | ||
* Password : `password` | ||
* Email : `[email protected]` / Password : `password` | ||
|
||
## Browser Compatibility | ||
Support for most major browsers including Chrome, Firefox, IE9+, Opera and Safari. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,51 @@ | ||
<?php | ||
defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Base Site URL | ||
|-------------------------------------------------------------------------- | ||
| | ||
*/ | ||
// Possible hosts locally. You can add some if needed. | ||
$config['host_dev'] = array('localhost', '127.0.0.1', '::1'); | ||
|
||
// Fill in the file of your project here when you develop locally. | ||
$host_dev = 'CI-AdminLTE'; | ||
|
||
// Fill in the domain name here when your project is online. | ||
// Example : www.johndoe.com | ||
// johndoe.com | ||
$host_prod = 'your_domain.tld'; | ||
|
||
// WARNING: Do not modify the lines below | ||
$domain = (in_array($_SERVER['HTTP_HOST'], $config['host_dev'], TRUE)) ? $_SERVER['HTTP_HOST'] . '/' . $host_dev : $host_prod; | ||
|
||
$config['base_url'] = ( ! empty($_SERVER['HTTPS'])) ? 'https://' . $domain : 'http://' . $domain; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Index File | ||
|-------------------------------------------------------------------------- | ||
| | ||
*/ | ||
$config['index_page'] = ''; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Assets | ||
|-------------------------------------------------------------------------- | ||
| | ||
*/ | ||
$config['assets_dir'] = 'assets'; | ||
$config['frameworks_dir'] = $config['assets_dir'] . '/frameworks'; | ||
$config['plugins_dir'] = $config['assets_dir'] . '/plugins'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Upload | ||
|-------------------------------------------------------------------------- | ||
| | ||
*/ | ||
$config['upload_dir'] = 'upload'; | ||
$config['avatar_dir'] = $config['upload_dir'] . '/avatar'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters