code-igniter-v3-giggi: update release v1
diff --git a/application/config/config.php b/application/config/config.php
index 1031522..5e82e23 100644
--- a/application/config/config.php
+++ b/application/config/config.php
@@ -23,7 +23,7 @@
| a PHP script and you can easily do that on your own.
|
*/
-$config['base_url'] = '';
+$config['base_url'] = 'https://www.giggi.me/';
/*
|--------------------------------------------------------------------------
@@ -35,7 +35,7 @@
| variable so that it is blank.
|
*/
-$config['index_page'] = 'index.php';
+$config['index_page'] = '';
/*
|--------------------------------------------------------------------------
@@ -64,7 +64,7 @@
|
| https://codeigniter.com/user_guide/general/urls.html
*/
-$config['url_suffix'] = '';
+$config['url_suffix'] = '.html';
/*
|--------------------------------------------------------------------------
diff --git a/application/config/database.php b/application/config/database.php
index 0088ef1..01eb5b4 100644
--- a/application/config/database.php
+++ b/application/config/database.php
@@ -70,9 +70,31 @@
| The $query_builder variables lets you determine whether or not to load
| the query builder class.
*/
-$active_group = 'default';
+$active_group = 'dev';
$query_builder = TRUE;
+$db['dev'] = array(
+ 'dsn' => '',
+ 'hostname' => getenv('MYSQL_HOSTNAME'),
+ 'username' => getenv('MYSQL_USER'),
+ 'password' => getenv('MYSQL_PASSWORD'),
+ 'database' => getenv('MYSQL_DATABASE'),
+ 'dbdriver' => 'mysqli',
+ 'dbprefix' => '',
+ 'pconnect' => FALSE,
+ 'db_debug' => TRUE,
+ 'cache_on' => FALSE,
+ 'cachedir' => '',
+ 'char_set' => 'utf8',
+ 'dbcollat' => 'utf8_general_ci',
+ 'swap_pre' => '',
+ 'encrypt' => TRUE,
+ 'compress' => FALSE,
+ 'stricton' => FALSE,
+ 'failover' => array(),
+ 'save_queries' => TRUE
+);
+
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
diff --git a/application/config/routes.php b/application/config/routes.php
index 1b45740..ec2e36c 100644
--- a/application/config/routes.php
+++ b/application/config/routes.php
@@ -49,6 +49,41 @@
| Examples: my-controller/index -> my_controller/index
| my-controller/my-method -> my_controller/my_method
*/
-$route['default_controller'] = 'welcome';
+/* Requested URI is empty - https://www.giggi.me */
+$route['default_controller'] = 'pelican/index';
+
+/* Requested URI is 'about' - https://www.giggi.me/about */
+$route['(^about$|page/about)'] = 'pelican/view/about';
+
+/* Requested URI is 'blog' - https://www.giggi.me/blog */
+$route['^blog$'] = 'pelican/view/blog';
+
+/* Requested URI is 'blog' - https://www.giggi.me/blog/foo.html */
+$route['^blog/(.+)'] = 'pelican/view/$1';
+
+/* Requested URI is 'category' - https://www.giggi.me/category/bar.html */
+$route['^category/(.+)'] = 'pelican/view/$1';
+
+/* Requested URI is 'ftp' - https://www.giggi.me/ftp */
+$route['(^ftp$|page/ftp)'] = 'pelican/view/ftp';
+
+/* Requested URI is 'git' - https://www.giggi.me/gerrit */
+$route['gerrit'] = 'pelican/view/index';
+
+/* Requested URI is 'git' - https://www.giggi.me/git */
+$route['(^git$|page/git)'] = 'pelican/view/git';
+
+/* Requested URI is 'home' - https://www.giggi.me/home */
+$route['home'] = 'pelican/index';
+
+/* Requested URI is 'invite' - https://www.giggi.me/invite */
+$route['(^invite$|page/invite)'] = 'invite/view/invite';
+
+/* Requested URI is 'login' - https://www.giggi.me/login */
+$route['(^login$|page/login)'] = 'login/view/login';
+
+/* Requested URI is 'mail' - https://www.giggi.me/mail */
+$route['(^mail$|page/mail)'] = 'pelican/view/mail';
+
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;