Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
baa5dd9
commit 64e4b7a
Showing
49 changed files
with
1,596 additions
and
375 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
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
application/controllers/test/test1.php → ...dules/Defaults/Controllers/Test/Test1.php
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
16 changes: 16 additions & 0 deletions
16
Application/Modules/Defaults/Controllers/Test/TestSecond.php
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Defaults\Controllers\Test; | ||
|
||
class TestSecond | ||
{ | ||
public static function index() | ||
{ | ||
echo 'TestSecond::index: YES'; | ||
} | ||
|
||
public static function testMe() | ||
{ | ||
echo 'TestSecond::testMe: YES'; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
// This is the right place to set headers, start a session, etc. | ||
|
||
use \Core\Models\Load; | ||
|
||
// Send content type and charset header | ||
header('Content-type: text/html; charset=utf-8'); | ||
|
||
|
||
// CLI Access | ||
if (!empty($GLOBALS['argv'][1])) { | ||
Load::$config['request_uri'] =& $GLOBALS['argv'][1]; | ||
} | ||
|
||
|
||
// Set locales | ||
// setlocale(LC_TIME, 'lv_LV.utf8', 'lv_LV.UTF-8'); | ||
// setlocale(LC_NUMERIC, 'lv_LV.utf8', 'lv_LV.UTF-8'); | ||
// setlocale(LC_CTYPE, 'lv_LV.utf8', 'lv_LV.UTF-8'); | ||
// date_default_timezone_set('Europe/Riga'); | ||
|
||
|
||
// Init db - Before uncommenting add at the use secion: "use \Core\Models\Db;" | ||
// Db::init(); | ||
|
||
|
||
// Start session | ||
/* | ||
session_set_cookie_params(0); | ||
session_name('MY_SESSION_NAME'); | ||
session_start(); | ||
*/ | ||
|
||
|
||
// Load js and css versions. These can be loaded from database or some cache. | ||
load::$config['view_data']['css_version'] = 1; | ||
load::$config['view_data']['js_version'] = 1; |
2 changes: 1 addition & 1 deletion
2
application/views/home/help.html → Application/Modules/Defaults/Views/help.html
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
5 changes: 3 additions & 2 deletions
5
application/views/home/index.html → ...ication/Modules/Defaults/Views/index.html
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
footer.page-footer{background:#F1F1F1;padding:20px 25px;margin-top:100px} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
// Define paths | ||
define('PUBLIC_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR); | ||
define('APP_PATH', dirname(PUBLIC_PATH).DIRECTORY_SEPARATOR); | ||
define('APP_MODULES_PATH', APP_PATH.'Modules'.DIRECTORY_SEPARATOR); | ||
define('BASE_PATH', dirname(APP_PATH).DIRECTORY_SEPARATOR); | ||
define('SYS_PATH', BASE_PATH.'System'.DIRECTORY_SEPARATOR); | ||
define('SYS_MODULES_PATH', SYS_PATH.'Modules'.DIRECTORY_SEPARATOR); | ||
|
||
// Load core class | ||
require SYS_PATH.'Modules/Core/Helpers/Bootstrap.php'; // Load |
Oops, something went wrong.