* [ADD] Fully MVC.

* [ADD] Abstract classes and interfaces for better code structure.
* [MOD] Actions handled as integers not strings and are consistent accross app modules.
* [MOD] Classes' names where modified. Namespaces where added for better handling.
* [ADD] Common exception class for the whole app.
* [ADD] New base file for app initialization.
* [MOD] Speed improvements.
This commit is contained in:
nuxsmin
2015-06-21 04:45:55 +02:00
parent 601ce41212
commit 399e579f9c
90 changed files with 5245 additions and 4472 deletions

View File

@@ -24,7 +24,8 @@
*/
define('APP_ROOT', '..');
require_once APP_ROOT . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Init.php';
require_once APP_ROOT . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Base.php';
$cssFiles = array(
array('href' => 'css/reset.css', 'min' => true),
@@ -39,8 +40,8 @@ $cssFiles = array(
array('href' => 'css/styles.css', 'min' => true)
);
if (!SP_Util::resultsCardsIsEnabled()) {
if (!SP\Util::resultsCardsIsEnabled()) {
array_push($cssFiles, array('href' => 'css/search-grid.css', 'min' => true));
}
SP_Util::getMinified('css', $cssFiles);
SP\Util::getMinified('css', $cssFiles);